ミリ秒まで含んだ時刻文字列
Posted feedbacks - Python
1 2 3 | import datetime
now = datetime.datetime.now()
print now.strftime("%Y%m%d%H%M%S.") + "%03d" % (now.microsecond // 1000)
|
ミリ秒まで含んだ時刻文字列
1 2 3 | import datetime
now = datetime.datetime.now()
print now.strftime("%Y%m%d%H%M%S.") + "%03d" % (now.microsecond // 1000)
|
znz #6446() Rating0/0=0.00
YYYY年mm月dd日HH時MM分SS.xxx秒なら、「YYYYmmddHHMMSS.xxx」のようにミリ秒まで含んだ文字列を返すプログラムを書いてください。
[ reply ]