Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
githubapiv3からjsonをデコードするPythonアプリケーションがあります。デコード後、Unicodeの日付/時刻文字列は次のようになります。
u'2011-12-11T22:37:18Z '
strftimeなどを使用してこれをフォーマットするにはどうすればよいですか?
import datetime datetime.datetime.strptime('2011-12-11T22:37:18Z', '%Y-%m-%dT%H:%M:%SZ')`