Created
July 3, 2013 09:27
-
-
Save futoase/5916627 to your computer and use it in GitHub Desktop.
ISO 8601フォーマットの日付を unixtime から生成したい場合
This file contains hidden or 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
| # -*- coding:utf-8 -*- | |
| import time | |
| from datetime import datetime | |
| print(datetime.fromtimestamp(time.mktime(datetime.now().timetuple())).isoformat()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment