ミリ秒まで表示させる
移転しました。
import datetime now = datetime.datetime.now() print now.strftime("%Y%m%d%H%M%S.") + "%04d" % (now.microsecond // 1000) → '20081118003037.0479'
移転しました。
import datetime now = datetime.datetime.now() print now.strftime("%Y%m%d%H%M%S.") + "%04d" % (now.microsecond // 1000) → '20081118003037.0479'