Skip to content

Instantly share code, notes, and snippets.

@futoase
Created July 3, 2013 09:27
Show Gist options
  • Select an option

  • Save futoase/5916627 to your computer and use it in GitHub Desktop.

Select an option

Save futoase/5916627 to your computer and use it in GitHub Desktop.
ISO 8601フォーマットの日付を unixtime から生成したい場合
# -*- 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