pub fn parse_duration_sec(s: &str) -> Result<i32, XmlError>Expand description
Seconds value for Duration_t.sec per Spec §7.2.2 +
the nonNegativeInteger_Duration_SEC pattern.
Accepts:
- Decimal
0..=0x7FFFFFFF. - Symbols
DURATION_INFINITYandDURATION_INFINITE_SEC-> sentinelDURATION_INFINITE_SEC.
§Errors
XmlError::ValueOutOfRange on negative values or overflow.