import datetime
import time
i = datetime.datetime.now()
print (" The current date and time is %s" % i)
print (" The current year is %s" %i.year)
print (" The current month is %s" %i.month)
print (" The current date is %s" %i.day)
print (" The current hour is %s" %i.hour)
print (" The current minute is %s" %i.minute)
print (" The current second is %s" %i.second)
import time
s2='2022-06-23'
### Convert to time tuple first
s2_2 = time.strptime(s2, '%Y-%m-%d')
### And then turn to timestamp
res=int(time.mktime(s1_1))
## One more day
res=(datetime.datetime.now()+datetime.timedelta(days=1)).strftime("%Y-%m-%d %H:%M:%S")
print(res)
## One more hour
res=(datetime.datetime.now()+datetime.timedelta(hours=1)).strftime("%Y-%m-%d %H:%M:%S")
print(res)
## One more minute
res=(datetime.datetime.now()+datetime.timedelta(minutes=1)).strftime("%Y-%m-%d %H:%M:%S")
print(res)