swat.cas.utils.datetime.python2sas_timestamp¶
-
swat.cas.utils.datetime.
python2sas_timestamp
(pyts)¶ Convert a Python datetime to SAS datetime
Parameters: - pyts : datetime.datetime
Python timestamp.
Returns: - float
SAS timestamp
Examples
>>> python2sas_timestamp(datetime.datetime(1970, 1, 1, 12, 0)) 315662400.0