MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / parse_hms_time

Function parse_hms_time

crates/hyperqueue/src/common/utils/time.rs:50–52  ·  view source on GitHub ↗

Parses time strings in the format [[hh:]mm:]ss. Individual time values may be zero padded.

(input: &str)

Source from the content-addressed store, hash-verified

48/// Parses time strings in the format [[hh:]mm:]ss.
49/// Individual time values may be zero padded.
50pub 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.

Callers 3

parse_hms_or_human_timeFunction · 0.85
parse_slurm_durationFunction · 0.85

Calls 3

all_consumingFunction · 0.85
parse_hms_time_innerFunction · 0.85
parse_textMethod · 0.80

Tested by

no test coverage detected