Skip to content

Instantly share code, notes, and snippets.

@makotoworld
Created November 28, 2012 06:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makotoworld/4159459 to your computer and use it in GitHub Desktop.
Save makotoworld/4159459 to your computer and use it in GitHub Desktop.
python で指定日時をエポック秒に変換する
import datetime
import time
int(time.mktime(datetime.datetime(2012, 3, 3, 22, 0, 57).timetuple()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment