swat.cas.utils.datetime.str2sas_time

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

Convert a string to a SAS time

Parameters:
dts : string

The string representation of a time.

Returns:
float

SAS time

Examples

>>> str2sas_time('12:00')
43200.0