swat.cas.utils.datetime.str2cas_datetime

swat.cas.utils.datetime.str2cas_datetime(dts)

Convert a string to a CAS timestamp

Parameters:
dts : string

The string representation of a timestamp.

Returns:
int

CAS timestamp

Examples

>>> str2cas_timestamp('19700101T12:00')
315662400000000