unix-time is the number of seconds since January 1, 1970 unix-time -> datetime
now=int() datetime.datetime.fromtimestamp(now)
datetime->unix-time
now=datetime.datetime() int(time.mktime(now.timetuple()))
Recommended Posts