pub fn parse_duration(s: &str) -> Result<Duration, String>Expand description
Parse a CEL duration string.
Supports formats like:
- “100s” - 100 seconds
- “1.5h” - 1.5 hours
- “30m” - 30 minutes
- “1h30m” - 1 hour 30 minutes
- “1h30m45s” - 1 hour 30 minutes 45 seconds
- “100ms” - 100 milliseconds
- “100us” - 100 microseconds
- “100ns” - 100 nanoseconds
- “-30s” - negative 30 seconds