Calendar files

iCalendar duration parser

Parse signed iCalendar durations and show their nominal seconds.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Accept weeks, or days followed by hours/minutes/seconds. Normalize with seven days per week and 24 hours per day.

P1DT2H3M4S = 86400 + 7200 + 180 + 4 = 93784 nominal seconds.

Limits

No months, years or fractional seconds. Days and weeks can span daylight-saving changes; nominal seconds are not timezone-aware date addition.