datetime
import datetime
now=datetime.datetime.now()
obj_datetime=datetime.datetime(2020,3,28,10,24,00)
obj_date=datetime.date(2020,3,28)
obj_time=datetime.time(10,24,00)
tomorow=datetime.datetime.now()+datetime.timedelta(days=1)
print("obj_datetime",obj_datetime)
print("obj_date",obj_date)
print("obj_time",obj_time)
print("tomorow",tomorow)
strptime,strftime
b=datetime.datetime.strptime('2015-6-1 18:19:59', '%Y-%m-%d %H:%M:%S')
print(b,type(b))
a=b.strftime("%A, %d. %B %Y %I:%M%p")
print(a)
a=datetime.datetime.now()
a=a.strftime("%Y %m %d %H:%M:%S")
print(a)