Parses time strings in the format [[hh:]mm:]ss. Individual time values may be zero padded.
(input: &str)
| 48 | /// Parses time strings in the format [[hh:]mm:]ss. |
| 49 | /// Individual time values may be zero padded. |
| 50 | pub fn parse_hms_time(input: &str) -> anyhow::Result<Duration> { |
| 51 | all_consuming(parse_hms_time_inner()).parse_text(input) |
| 52 | } |
| 53 | |
| 54 | /// Wrapper around `SystemTime` that pretty-prints itself using RFC3339 format |
| 55 | /// (e.g. `2018-02-14T00:28:07Z`) in its `Debug` implementation. |
no test coverage detected