Skip to main content

parse_duration_seconds

Function parse_duration_seconds 

Source
pub fn parse_duration_seconds(s: &str) -> Result<i64>
Expand description

Seconds in an ISO-8601 duration P[nM][nD][T[nH][nM][nS]]: ASCII digits only, each field at most 16 digits, the total at most 2^53 - 1, and at least one field. A month in the date part counts as 30 days. “P”, “PT” and a trailing “T” are refused.