An attribute value may hold a duration
A duration is:
This article shows you how to write a duration value.
We support a simplified iso format that is less verbose.
The below table shows some examples:
| Value | Results |
|---|---|
| 0.500s | 500 milliseconds |
| 20.345s | 20.345 seconds |
| 15m | 15 minutes |
| 10h | 10 hours |
| 2d | 2 days |
The format is:
(n)d(n)h(n)m(n)s
where:
We support the full iso format
Example:
| Value | Results |
|---|---|
| P2DT3H4M | 2 days, 3 hours and 4 minutes |
| P-6H3M | -6 hours and +3 minutes |
| -P6H3M | -6 hours and -3 minutes |
| -P-6H+3M | +6 hours and -3 minutes |
The ISO 8601 Durations are expressed using the following format:
P(n)DT(n)H(n)M(n)S
where:
We support only Fixed time units:
We don't support: