Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Created August 28, 2022 11:40
Show Gist options
  • Save pandanote-info/8476402230fcebbe9cd85cb5dbb3117b to your computer and use it in GitHub Desktop.
Save pandanote-info/8476402230fcebbe9cd85cb5dbb3117b to your computer and use it in GitHub Desktop.
現在のローカル時刻をISO8601フォーマットで表示するためのPython3のプログラム(その2)。
#!/usr/bin/python
#
# See https://sidestory.pandanote.info/datetime_in_iso8601.html
#
from datetime import datetime
print(datetime.now().astimezone().isoformat())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment