Beta
Decode an ISO 8601 duration string into seconds.
ISO 8601 duration string.
Duration in seconds.
const result = decodeIso8601Duration('PT1H1M1S');assert(result === 3661); Copy
const result = decodeIso8601Duration('PT1H1M1S');assert(result === 3661);
Decode an ISO 8601 duration string into seconds.