parse_duration
parse_duration copied to clipboard
Parses a duration from a string.
Hey, As reported in https://github.com/zeta12ti/parse_duration/pull/18 there are payloads that makes the `parse_duration::parse(input)` to cause denial of service through big integer `pow` calculations. I am not sure if the suggested solution...
Resolves #19
```rust assert_eq!( parse_duration::parse("-0.1 days"), Ok(Duration::from_secs(8640)) ); ``` Should fail with `OutOfBounds` sign minus.
Hello, I would like to know if it is possible to parse `iso8601` duration time format? I've tried to parse `"P0Y0M0DT0H5M52.352S" or "P0Y0M0DT0H0M14.976S"` without success. Regards, Maxim