date2seconds

sofia_redux.toolkit.utilities.func.date2seconds(datestring, dformat='%Y-%m-%dT%H:%M:%S.%f')[source]

Convert a header datestring to seconds

Parameters:
datestringstr
dformatstr

expected format of the date-time string. Default format is YYYY-MM-DDThh:mm:ss.ff

Returns:
float