Skip to main content

Module duration

Module duration 

Source
Expand description

§Duration value

The decoded duration value kind.

Backs DURATION and the duration form of other properties (RFC 5545 3.3.6): an ISO 8601 duration such as P15DT5H0M20S or -P1D, always prefixed by P (with an optional leading sign). The value is kept as its raw text, so it goes back on the wire exactly as it arrived.

IcalDuration::seconds reads it as a number and IcalDuration::from_seconds writes one back, which is all the arithmetic the grammar admits: it carries no month and no year, so no calendar is needed to say how long one is.

Structs§

IcalDuration
A decoded duration value (ISO 8601 P...), kept as its raw text.