|
return "[%d:%d:%d:%d]" % (dt.now().time().hour, dt.now().time().minute, dt.now().time().second, dt.now().time().microsecond) |
"[%d:%d:%d:%d]" % (dt.now().time().hour, dt.now().time().minute, dt.now().time().second, dt.now().time().microsecond)
Can use strftime
datetime.datetime.now().strftime('%H:%M:%S:%f'))
console-logging/console_logging/console.py
Line 22 in 62ed79d
"[%d:%d:%d:%d]" % (dt.now().time().hour, dt.now().time().minute, dt.now().time().second, dt.now().time().microsecond)Can use strftime
datetime.datetime.now().strftime('%H:%M:%S:%f'))