2021-10-21から1日間の記事一覧
Pythonのdatetimeを用いて,日時をISO 8601で表現します. aware (タイムゾーンあり) か native (タイムゾーンなし) を意識し,isoformat()とfromisoformat()の動作を確認するユニットテストを作成しました. import datetime import unittest class ISOForm…
Pythonのdatetimeを用いて,日時をISO 8601で表現します. aware (タイムゾーンあり) か native (タイムゾーンなし) を意識し,isoformat()とfromisoformat()の動作を確認するユニットテストを作成しました. import datetime import unittest class ISOForm…