Skip to main content

render_duration

Function render_duration 

Source
pub fn render_duration(s: &str) -> Option<String>
Expand description

Canonical openCypher rendering of duration(<string>), or None if the string is not a recognised ISO-8601 duration. Handles the designator form (P14DT16H12M, with decimal components like P0.75M/P2.5W spilling into smaller units) and the alternative date-time form (P2012-02-02T14:37:21.545).