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