.strftime('%Y-%m-%d %H:%M:%S.%f')
?# Nebo mas na mysli: ?
from datetime import datetime
from datetime import timedelta
start_time = datetime.now()
def millis():
dt = datetime.now() - start_time
ms = (dt.days * 24 * 60 * 60 + dt.seconds) * 1000 + dt.microseconds / 1000.0
return ms
TiP~ Zdroj :http://stackoverflow.com/questions/5998245/get-cur rent-time-in-milliseconds-in-python