swat.cas.utils.datetime.sas2python_timestamp

swat.cas.utils.datetime.sas2python_timestamp(sts, tz=None)

Convert a SAS datetime to Python datetime

Parameters
stsfloat

SAS timestamp.

Returns
datetime.datetime

Examples

>>> sas2python_timestamp(315662400.0)
datetime.datetime(1970, 1, 1, 12, 0)