caellion-python-commons
|
Implementation of DateTime serializer, using Unix-epoch based timestamp with millisecond precision as serialized format. More...
Static Public Member Functions | |
def | deserialize (integer) |
Alias for unserialize. More... | |
def | unserialize (integer) |
Unserializes the unix timestamp with millisecond precision to DateTime object. More... | |
def | serialize (datetime_to_serialize) |
Serializes the DateTime to Unix timestamp integer with millisecond precision. More... | |
Implementation of DateTime serializer, using Unix-epoch based timestamp with millisecond precision as serialized format.
Definition at line 51 of file datetime_serializer.py.
|
static |
Alias for unserialize.
Unserializes the unix timestamp with millisecond precision to DateTime object. Always returns UTC timezone DateTime.
Alias for unserialize()
integer | unix timestamp integer (milliseconds) |
Definition at line 58 of file datetime_serializer.py.
|
static |
Serializes the DateTime to Unix timestamp integer with millisecond precision.
Always returns UTC timezone integer.
datetime_to_serialize | DateTime to serialize to unix timestamp integer |
Definition at line 82 of file datetime_serializer.py.
|
static |
Unserializes the unix timestamp with millisecond precision to DateTime object.
Always returns UTC timezone DateTime.
integer | unix timestamp integer (milliseconds) |
Definition at line 71 of file datetime_serializer.py.