qshinoの日記

Powershell関係と徒然なこと

python 日付時刻 現在時刻

基本

from datetime import datetime

datetime.now().strftime("%Y/%m/%d %H:%M:%S")