swat.cas.utils.datetime.python2sas_time

swat.cas.utils.datetime.python2sas_time(pytm)

Convert a Python time to a SAS time

Parameters
pytmdatetime.time

Python time.

Returns
float

SAS time

Examples

>>> python2sas_time(datetime.datetime(1970, 1, 1, 12, 0))
43200.0