EpochLab

Time Parser

Read a time out of any text

Clock times, durations and offsets, parsed and explained — including the forms that look alike and mean different things, like `PT1H30M` and `01:30`.

Questions people ask

The things that come up about time parsers, answered plainly.

What is PT1H30M?

An ISO 8601 duration: one hour thirty minutes. The P starts a period and the T separates the time part, so P1DT2H is one day and two hours. It is a duration, not a time of day — the distinction matters when both appear in the same API.

Can it read '2h30m' or '90 minutes'?

Yes, along with '1:30', '1.5h' and 'an hour and a half'. Every reading is shown in milliseconds so you can check it did what you meant.

Related tools

Render an instant in any pattern or locale, and read one back out of text.

All 160 tools · More in formatting & parsing