Duration

Type 1h 30m, 45m, or 2:15:00. 1h 30m gives 5400 s. 45m gives 2700 s. 2:15:00 gives 8100 s. A parser, not ISO duration.

This parses h/m/s and colon times, not ISO 8601 input. Epoch sits on Unix timestamp.

Input data

Results

Enter data and click Calculate.

How it works

Duration in this calculator turns the typed string into seconds. 1h 30m gives 5400 s. 45m gives 2700 s. 2:15:00 gives 8100 s. The calculator does not read PT1H30M and is not ISO 8601 input.

Field dur-str is text. 1h is 3600, 30m is 1800, together 5400 s. 45m is 2700 s. 2:15:00 is two hours and 15 minutes, 8100 s. The extras result is the first card in seconds.

5400 s is not a cron timer. 2700 s does not come from systemd. 8100 s is not a Java Duration. You type the string. ISO PT... does not enter here.

Unix timestamp next door takes an epoch. The timezone converter moves a clock. Here 1h 30m stays 5400 s, the parser alone.

Type 1h 30m, then Calculate. The result is 5400 s. Switch to 45m or 2:15:00. A blank field gives no seconds.

1h 30m gives 5400 s. 45m gives 2700 s. 2:15:00 gives 8100 s. Another string changes 5400 s.

Formula

seconds = hours×3600 + minutes×60 + seconds. Input 1h 30m or HH:MM:SS, not ISO.

How to use

  1. Type 1h 30m in the time field.
  2. Click Calculate. The result is 5400 s.
  3. 45m gives 2700 s. 2:15:00 gives 8100 s.
  4. An h/m and colon parser, not ISO 8601.
  5. Read an epoch on Unix timestamp.

1h 30m gives 5400 s

An h/m and HH:MM:SS parser. 1h 30m gives 5400 s. Not ISO 8601.

Duration
The string in dur-str. 45m gives 2700 s. Not a Java Duration.
seconds
The calculator result. 2:15:00 gives 8100 s. Not cron.
hours
The h token. 1h 30m leaves 5400 s. Not ISO PT.

Examples

Example 1

  • 1h 30m

5400 s

How many seconds from 1h 30m? 5400 s. A parser, not ISO duration.

Example 2

  • 45m

2700 s

How many from 45m? 2700 s.

Example 3

  • 2:15:00

8100 s

How many from 2:15:00? 8100 s. A colon time, not PT2H15M.

Related calculators

Common questions

How many seconds from 1h 30m?

5400 s. 3600 + 1800. A parser, not ISO.

What about 45m?

2700 s. Minutes times 60.

What about 2:15:00?

8100 s. Two hours and 15 minutes from a colon time.

Does PT1H30M work?

No. The calculator does not read ISO 8601. Type 1h 30m or 2:15:00.

Does a bare 5400 work?

The field can take raw seconds. The examples keep 1h 30m, 45m, and 2:15:00.

Does a blank field count?

No. Without a string there are no seconds.

How is this different from Unix timestamp?

That card is an epoch. Here 1h 30m gives 5400 s.

Is the space in 1h 30m required?

Yes in this example. The calculator reads h and m tokens.

Does 90m match 1h 30m?

Yes as 5400 s if you type 90m. Extras take 1h 30m.

Knowledge sources

The calculator counts bits, bytes or throughput from your numbers. Below are SI and bit definitions (NIST).

Page updated in 2026.