convert_time

nawdex_analysis.io.tools.convert_time(t, roundTo=60.0)

Utility converts between two time formats A->B or B->A:

Parameters:t (float or datetime object) – time A = either float as %Y%m%d.%f where %f is fraction of the day B = datetime object
Returns:tout – time, counterpart to t
Return type:datetime object or float