swat.cas.utils.datetime.str2cas_date

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

Convert a string to a CAS date

Parameters:
dts : string

The string representation of a date.

Returns:
int

CAS date

Examples

>>> str2cas_date('19700101T12:00')
3653