Vor 1 Tag Python DateTime
date_N_days_ago = datetime.now() - timedelta(days=N)
Magnificent Moth
date_N_days_ago = datetime.now() - timedelta(days=N)
from datetime import datetime, timedelta
d = datetime.today() - timedelta(days=days_to_subtract)
from datetime import datetime, timedelta
print datetime.now() + timedelta(days=5, hours=-5)
from datetime import datetime
birthday = datetime(1988, 2, 19, 12, 0, 0)
diff = datetime.now() - birthday
print diff
# 8954 days, 7:03:45.765329