The datetime Module for Working with Dates and Times in Python


Manipulate dates and times easily.

Source Code

from datetime import datetime, timedelta
now = datetime.now()
print("Now:", now)
future = now + timedelta(days=10)
print("Future:", future)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments