Time Converter
Duration - nanoseconds to years.
Enter a value above to convert between h and min.
How to convert time units
Time is based on the second: one minute is 60 s, one hour is 3,600 s, and one day is 86,400 s. Note that this tool defines a month as 30 days and a year as 365 days - real calendar months and leap years vary, so longer spans are approximate.
Worked example
Two hours is 2 × 3600 = 7,200 s. Ninety minutes is 90 ÷ 60 = 1.5 h, and one day is 86,400 s = 1,440 min.
How many seconds are in an hour?
One hour equals 3,600 seconds. One day equals 86,400 seconds, one week equals 7 days, one (30-day) month equals 2,592,000 seconds, and one (365-day) year equals 31,536,000 seconds.
When you'll use a time converter
Time conversion is handy for durations in code and logs (nanoseconds, milliseconds, seconds), timers and scheduling, and scientific timing. The table above lists your value in all 9 supported units at once, using the 30-day month and 365-day year convention.
Common time conversions
Quick-reference rates for common time conversions - seconds, minutes, hours, days, weeks and years, one unit at a time.
| From | To |
|---|---|
| 1 minute (min) | 60 s |
| 1 hour (h) | 60 min |
| 1 hour (h) | 3,600 s |
| 1 day (d) | 24 h |
| 1 day (d) | 1,440 min |
| 1 week (wk) | 7 d |
| 1 month (30 d) (mo) | 30 d |
| 1 year (365 d) (yr) | 365 d |
| 1 year (365 d) (yr) | 52.1429 wk |
| 1 second (s) | 1,000 ms |
| 1 millisecond (ms) | 0.001 s |
Frequently asked questions
How many milliseconds are in a second?
One second equals 1,000 milliseconds. The millisecond is one thousandth of a second and is common in code, logs, and timers.
How many nanoseconds are in a second?
One second equals 1,000,000,000 nanoseconds, since a nanosecond is one billionth of a second. This unit is used for very fine timing in computing and physics.
How many hours are in a year?
Using the 365-day year convention, one year equals 8,760 hours, found by multiplying 365 days by 24 hours per day.
How many weeks are in a year?
A 365-day year contains about 52.14 weeks, since 365 divided by 7 is roughly 52.14. People often round this to 52 weeks for everyday planning.
What is the formula to convert nanoseconds to seconds?
Divide the number of nanoseconds by 1,000,000,000 to get seconds. For example, 500,000,000 ns divided by one billion equals 0.5 seconds.
Is a week longer than a 30-day month?
No, a 30-day month is longer than a week. One week is 7 days while this tool defines a month as 30 days, so a month is a bit more than four weeks.
Popular time conversions
Quick links to popular time conversions - tap any pair to open the converter ready to go.