#datetime.py # Demo datetime import datetime someday = datetime.date(2021,2,17) #year, month, day print(someday) print(someday.year,someday.month,someday.day) print(someday.strftime("%A, %B %d, %Y")) dt = datetime.timedelta(100) #100 days print(someday+dt) sometime = datetime.time(15,46,5) # H M S print(sometime) print(sometime.hour,sometime.minute,sometime.second) now = datetime.datetime.today() #this instant microsecond print("The date and time is", now) now = datetime.datetime.today() #this instant microsecond print("The date and time is", now) now = datetime.datetime.today() #this instant microsecond print("The date and time is", now)