The parser should already handle abbreviated values, e.g., 0:0:5.36 instead of 00:00:05.360.
Could also make hours and minutes optional, enabling us to specify times in seconds only. The parser will accept any number of digits for any of the time components (the only thing truncated is the fraction to milliseconds), and Python’s timedelta will correctly handle any number of seconds as input, so we should be able easily to specify timestamps as, e.g., 114 instead of 00:01:54.
Issue by nstanger Monday Aug 15, 2016 at 11:07 GMT Originally opened as https://github.com/Otago-InfoSci-Database/Tools/issues/16
The parser should already handle abbreviated values, e.g.,
0:0:5.36
instead of00:00:05.360
.Could also make hours and minutes optional, enabling us to specify times in seconds only. The parser will accept any number of digits for any of the time components (the only thing truncated is the fraction to milliseconds), and Python’s
timedelta
will correctly handle any number of seconds as input, so we should be able easily to specify timestamps as, e.g.,114
instead of00:01:54
.