unix-timeは1970年1月1日からの秒数 unix-time -> datetime now=int() datetime.datetime.fromtimestamp(now) datetime->unix-time now=datetime.datetime() int(time.mktime(now.timetuple())) Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up