Function repr::util::parse_duration [−][src]
Expand description
Parses a Duration
from a string.
The accepted syntax for a Duration
is exactly the same syntax accepted
by the SQL interval type, i.e., as parsed by strconv::parse_interval
,
except that negative intervals are rejected as they are not representible in
Rust’s duration type.