swat.cas.utils.datetime.python2cas_timestamp¶
-
swat.cas.utils.datetime.
python2cas_timestamp
(pyts)¶ Convert a Python datetime to CAS datetime
- Parameters
- pytsdatetime.datetime
Python timestamp.
- Returns
- int
CAS timestamp
Examples
>>> python2cas_timestamp(datetime.datetime(1970, 1, 1, 12, 0)) 315662400000000