1 2 3 4 | from time import mktime
def datetime_to_ms_str(dt):
return str(1000*mktime(dt.timetuple()))
|
More like this
- datetime.time/datetime.datetime to Unix Epoch (with microsecond support) by sleepycal 3 years ago
- caching parsed templates by forgems 5 years, 5 months ago
- Widget for DateTime values on Geraldo Reports by marinho 4 years, 1 month ago
- Percent Field by fylb 3 years, 3 months ago
- Comparing two json like python objects by nmb10 2 years, 6 months ago
Comments