swat.cas.utils.datetime.str2sas_datetime

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

Convert a string to a SAS timestamp

Parameters:
dts : string

The string representation of a timestamp.

Returns:
float

SAS timestamp

Examples

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