A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.

Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.

✓ Free to use✓ No sign-up✓ 500+ possibilities
Calculators

Time Unit Converter

Convert durations among milliseconds, seconds, hours, days, weeks, and average months or years.

Loading interactive tool…

About this tool

Time Unit Converter converts durations among milliseconds, seconds, minutes, hours, days, weeks, average months, and average years. Month and year values use fixed mean lengths (30.436875 days and 365.2425 days), so they are duration estimates rather than calendar arithmetic. Enter a numeric value and choose source and target units; the result is formatted to about ten significant digits. Use a date or time-zone calculator when calendar boundaries or daylight-saving rules matter.

Why use it

  • Wide Unit Range: Covers nanoseconds, microseconds, milliseconds, seconds, minutes, hours, days, weeks, months (approximate), years, decades, and centuries in a single tool. No unit-hopping between separate converters needed.

  • Live Multi-unit Output: Every unit field updates simultaneously as you type — no submit button required. Change the value and instantly see the cascade of equivalent durations across all units in real time.

  • Engineering Precision: Results carry up to twelve significant figures, avoiding the silent rounding that simpler tools apply. Useful for scientific computation, network timeout configs, and any context where a few microseconds matter.

  • Common Comparisons: Built-in reference labels (such as '1 million seconds ≈ 11.6 days') make large durations intuitive. These anchors help you sanity-check unusual values without needing to reason through the math independently.

  • Copy with Unit: Each result field has a copy button that places the value and its unit label on the clipboard together, so you can paste '31,557,600 seconds' rather than just the number and have to look up the unit separately.

  • Offline Capable: Pure JavaScript with no external API calls. All conversion factors are baked in, so the tool works fully offline once the page has loaded — useful on flights or in network-restricted environments.

How to use

  1. Select the source unit from the dropdown — choose from nanoseconds up to centuries.
  2. Type the numeric value you want to convert in the input field.
  3. Read all other unit equivalents updating live in the output grid.
  4. Adjust the decimal precision slider if you need more or fewer significant figures.
  5. Copy any individual result with its unit label using the copy button beside each row.
  6. Try entering a reference value (like 86,400) to verify that one day equals that many seconds.

When it helps

  • Setting a cache TTL or session timeout in a programming environment that requires a specific unit (ms, s, or min).
  • Converting a physics decay constant or half-life between seconds, microseconds, and years.
  • Checking how many seconds are in a billing period, subscription cycle, or contract duration.
  • Satisfying curiosity — how many days is a billion seconds? How many seconds in a decade?
  • Verifying a duration against a third-party API's rate-limit or retry-after header.
  • Converting game cooldowns, animation frame timings, or loop intervals between frames and milliseconds.

Examples

Seconds to days

Input

1000000 seconds

Expected result

11.57407407 days = 277.7777778 hours

Milliseconds to minutes

Input

90000 ms

Expected result

1.5 minutes = 90 seconds

Average year to seconds

Input

1 average year (365.2425 days)

Expected result

31556952 seconds = 525949.2 minutes

Tips

  • For programming, memorise 1 day = 86,400 seconds — it's used constantly in cache TTLs, token expiry, and rate-limit windows.
  • Use Julian year (365.25 days) for general duration conversions; specify if your context requires exact calendar days.
  • Months are inherently ambiguous for precision work — convert to days using your exact start and end dates instead.
  • 1 million seconds ≈ 11.57 days; 1 billion seconds ≈ 31.7 years — useful reference anchors for sanity-checking.
  • JavaScript's Date.now() is millisecond-accurate; browsers artificially cap sub-millisecond resolution to prevent timing attacks.

Frequently Asked Questions

How many days are in a year for conversion purposes?
This tool uses 365.25 days per Julian year, which is the standard convention in most programming libraries and scientific publications. It accounts for the average effect of leap years over a four-year cycle.
What is the difference between a Julian and a tropical year?
A Julian year is exactly 365.25 days (31,557,600 seconds). A tropical year — the time for Earth to complete one orbit relative to the Sun — is approximately 365.24219 days. The difference is about 11 minutes per year.
How many milliseconds in a minute?
Exactly 60,000 milliseconds. One second = 1,000 ms, one minute = 60 seconds, so 60 × 1,000 = 60,000 ms. This is a fundamental constant in most programming timers and schedulers.
Why do some calculators use 365 vs 365.25 days?
365 is the common calendar year; 365.25 is the Julian year average. For durations spanning multiple years, 365.25 gives a more accurate average. For a single calendar year, 365 may be more appropriate.
How is a 'month' handled when months differ in length?
Months are approximated as 365.25 / 12 ≈ 30.4375 days each. This is an average and won't match any specific calendar month. For precise month-based date math, use the date-calculator tool instead.
What's the smallest unit of time?
The Planck time (~5.39 × 10⁻⁴⁴ seconds) is the theoretically smallest meaningful unit in physics. Practically, the nanosecond (10⁻⁹ s) is the smallest unit in this tool and sufficient for most engineering applications.
Why is leap year math hard for second-level precision?
Leap years add one extra day every 4 years (minus century exceptions). Converting a specific date range to seconds requires knowing which years in that span are leap years. This tool's year conversion uses the 365.25 average, not a calendar-specific count.
How precise is JavaScript's millisecond timer?
JavaScript's Date.now() and performance.now() both report in milliseconds, but browsers deliberately reduce precision to ~1ms or ~5ms to prevent timing-based fingerprinting. Sub-millisecond precision requires dedicated hardware timers.

Explore the category

Glossary

Second (SI base unit)
The SI base unit of time, defined since 1967 as exactly 9,192,631,770 oscillations of the caesium-133 atom. All other time units are defined as multiples or fractions of the second.
Millisecond / Microsecond / Nanosecond
Sub-second units equal to 10⁻³, 10⁻⁶, and 10⁻⁹ seconds respectively. Milliseconds are common in web APIs and networking; microseconds in database profiling; nanoseconds in CPU and hardware timing.
Minute / Hour / Day
Human-scale time units: 1 minute = 60 seconds, 1 hour = 3,600 seconds, 1 day = 86,400 seconds. These exact values are fundamental constants in computing and scheduling.
Julian Year (365.25 days)
A standardised year of exactly 365.25 days (31,557,600 seconds), used in astronomy and most programming date libraries as a stable average that accounts for the leap-year cycle.
Tropical Year
The time required for the Earth to complete one orbit relative to the Sun, approximately 365.24219 days. The Gregorian calendar is designed to track the tropical year; it differs from the Julian year by about 11 minutes.
Tick / Frame
Informal units of time in computing and animation. A tick is one iteration of a clock or game loop; a frame is one rendered image, typically 1/60 or 1/30 of a second. Their duration depends on the specific system or engine.