swat.cas.utils.datetime.cas2python_timestamp

swat.cas.utils.datetime.cas2python_timestamp(cts, tz=None)

Convert a CAS datetime to Python datetime

Parameters
ctsint

CAS timestamp.

Returns
datetime.datetime

Examples

>>> cas2python_timestamp(315662400000000)
datetime.datetime(1970, 1, 1, 12, 0)