A worked example, rendered from real sample data. Sign in to run the tool on your own input.
P3Y6M4DT12H30M5SParsed: P3Y6M4DT12H30M5S
Years: 3
Months: 6
Weeks: 0
Days: 4
Hours: 12
Minutes: 30
Seconds: 5
≈ 110,842,205 seconds
≈ 30789.50 hours
≈ 1282.90 days
(note: years/months are approximate — 365.25 / 30.44 days)
Parse P3Y6M4DT12H30M5S into years, months, weeks, days, time. Part of the DevTools Surf developer suite. Browse more tools in the Date / Time collection.