Created
November 28, 2012 06:42
-
-
Save makotoworld/4159459 to your computer and use it in GitHub Desktop.
python で指定日時をエポック秒に変換する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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