mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-12 12:12:04 +08:00
removed protocol cruft from transaction transform days.
This commit is contained in:
@@ -47,8 +47,7 @@ def EPOCH(utc_datetime):
|
||||
return int(ms)
|
||||
|
||||
def UN_EPOCH(ms_since_epoch):
|
||||
seconds_since_epoch = float(ms_since_epoch) / 1000.0
|
||||
delta = timedelta(seconds = seconds_since_epoch)
|
||||
delta = timedelta(milliseconds = ms_since_epoch)
|
||||
dt = UNIX_EPOCH + delta
|
||||
return dt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user