parse_time¶
- emlib.misc.parse_time(t)[source]¶
Parse a time string
HH:MM:SS.mmm
and convert it to secondsGiven a time in the format HH:MM:SS.mmm or any sub-form of it (SS.mmm, MM:SS, etc), return the time in seconds. This is the inverse of sec2str
- Parameters:
t (
str
) – the time as string- Return type:
float
- Returns:
seconds