parse_duration icon indicating copy to clipboard operation
parse_duration copied to clipboard

Parses a duration from a string.

Results 4 parse_duration issues
Sort by recently updated
recently updated
newest added

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...

```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