Time Converter

Convert a duration between twelve time units, from nanoseconds up to centuries.

Values
Converted
Runs locally in your browser

About the Time Converter

Durations are stored in seconds, logged in milliseconds, billed in hours and planned in weeks, and turning one into another by hand is easy to get slightly wrong. This converter handles twelve units so an API timeout and a contract term can both be expressed in whatever the reader expects.

Months and years need a definition because they are not fixed lengths. A year here is 31556952 seconds, the mean Gregorian year of 365.2425 days, and a month is one twelfth of that, 30.436875 days. That is the right choice for averages and rough planning, but it is the wrong choice for a specific calendar range, because February to March is not the same span as July to August.

For the exact gap between two dates, the Date Difference Calculator counts real calendar days instead. Reach for this tool when you have a plain duration, such as turning 5400 seconds into 1.5 hours or a 90 day retention policy into months. Values convert one per line, and the reference table under the result covers the round numbers you are most likely to want.

How to use

  1. Paste the durations, one number per line.
  2. Choose the unit you have and the unit you need.
  3. Use Rounding to trim long decimals.
  4. Copy the converted durations.

Common questions

How many seconds are in a day?
86400 seconds, ignoring leap seconds, which this tool does not model.
How long is a month here?
30.436875 days, one twelfth of the mean Gregorian year. Use a date calculator when you need a specific calendar month.
Can I convert millisecond timings from a log file?
Yes. Paste the millisecond values one per line and set milliseconds as the source unit.
Does it account for leap years?
Indirectly. The year length of 365.2425 days already averages leap years in, though individual years are not modelled.