from datetime import datetime then = datetime(2022, 12, 16) # année, mois, heure, minute, secondes now = datetime.now() #date et heure courante print (now - then)