fork download
  1. from datetime import datetime, timedelta
  2. now = datetime.now()
  3. print(now)
  4. print(now+timedelta(hours=10))
  5. print(now-timedelta(days=1))
  6. # your code goes here
  7. # your code goes here
Success #stdin #stdout 0.1s 14148KB
stdin
Standard input is empty
stdout
2025-05-29 05:50:44.836297
2025-05-29 15:50:44.836297
2025-05-28 05:50:44.836297