swat.cas.utils.datetime.str2sas_timestamp

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

Convert a string to a SAS timestamp

Parameters
dtsstring

The string representation of a timestamp.

Returns
float

SAS timestamp

Examples

>>> str2sas_timestamp('19700101T12:00')
315662400.0