swat.cas.utils.datetime.str2cas_timestamp

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

Convert a string to a CAS timestamp

Parameters
dtsstring

The string representation of a timestamp.

Returns
int

CAS timestamp

Examples

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