The datetime Module for Working with Dates and Times in Python


Manipulate dates and times with the datetime module.

Source Code

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