duration¶
ISO 8601 duration. A Duration measures an amount of time using time-based values - hours, minutes, seconds, nanoseconds.
Optional Parameters
- Value range constraint -
duration( min, max )
An optional range can be specified to a
duration
in order to specify a restriction on permitted values. The values formin
andmax
can be a ISO 8601 duration string value or*
to indicate wildcard maximum or minimum permitted value.Examples
duration(*,"PT10H30M")
A duration upto 10 hours 30 mins.duration("P1D", "P2D")
A duration between 1 to 2 days.