for example , There is a string ,value=‘2022/02/11’
datetime.strptime(value, ‘%Y/%m/%d’)
datetime Refers to the format of time class , It is a form similar to a structure , Such as datetime(2022,2,11,16,15,20)
dt = datetime.now().replace(microsecond=0)
dt.strftime(’%Y-%m-%d %H:%M:%S’)
for example dt by datetime
int(time.mktime(dt.timetuple()))