Skip to main content

is_duration_value

Function is_duration_value 

Source
pub fn is_duration_value(val: &Value) -> bool
Expand description

Check if value is a duration (ISO 8601 string starting with ā€˜P’ or temporal duration).

Note: Numbers are NOT automatically treated as durations. The duration() function can accept numbers as microseconds, but arbitrary numbers in arithmetic expressions should not be interpreted as durations.