1 2 3 4 | from time import mktime
def datetime_to_ms_str(dt):
return str(1000*mktime(dt.timetuple()))
|
More like this
- HTML/JS template filter to show localized dates/times by mback2k 2 years, 10 months ago
- Parse datetime model field to string by jzelez 1 year, 7 months ago
- DateTimeFluxCapacitor by jbcurtin 1 year ago
- JSON decode datetime by japerk 2 years, 10 months ago
- JSON encode ISO UTC datetime by japerk 2 years, 10 months ago
Comments