Guide
Converting time between nanoseconds, seconds, hours, days, weeks, months and years
Time is measured in units that are not decimal: sixty seconds, sixty minutes, twenty-four hours, seven days. Converting between them needs a few exact factors and a sensible convention for the units that are not exact, months and years. This page converts among thirteen units, from the nanosecond of computing to the century of history, and writes the result as days, hours, minutes and seconds when that is easier to read.
The exact units
The second is the SI base unit. A minute is 60 seconds, an hour is 3,600 seconds, a day is 86,400 seconds and a week is 604,800 seconds. A fortnight, two weeks, is 1,209,600 seconds. The small units are decimal: a millisecond is a thousandth of a second, a microsecond a millionth and a nanosecond a billionth. These are the units used for computer timing and network latency.
Months and years
A calendar month has 28 to 31 days and a calendar year has 365 or 366, so neither is a fixed number of seconds. The page uses averages. A year is the Julian year of 365.25 days, which is 31,557,600 seconds, and a month is one twelfth of that, 30.4375 days. A decade and a century are ten and a hundred of those years. The numbers are the right ones for rough comparisons, such as how many seconds old someone is, but not for counting the days between two dates.
Using it
Type a value, choose the units and read the result and the formula. The swap button reverses them. Under the result, a line writes the span as days, hours, minutes and seconds, so 1.5 hours reads 1 h 30 min and 100,000 seconds reads 1 d 3 h 46 min 40 s. The list of all thirteen units shows the same span in each, and the reference table converts the common values of the starting unit.
Edge cases
Spans shorter than a second are shown in milliseconds in the read-out, since the days-hours-minutes form would be empty. Negative values keep their sign in the result, though the read-out only gives positive spans. The converter ignores leap seconds, daylight saving and time zones, so a day is always exactly 24 hours. For calendar work use a date tool, and for clock times use the time zone converter.
A worked example
The default conversion is 1.5 hours to minutes, which is 90. The read-out says 1 h 30 min. The table gives 0.25 hour as 15 minutes, 0.5 as 30, 1 as 60, 1.5 as 90, 2 as 120 and 8 as 480. A week is 168 hours and 10,080 minutes. A Julian year is 8,766 hours, 525,960 minutes or 365.25 days, and a century is about 36,525 days.
Limits
The page does not do calendar arithmetic. It cannot say how many days lie between two dates, how many weekends there are in a month or what time it is somewhere else, and its months and years are averages. For those, the date and time zone tools on the site apply the real calendar.
Related tools
- Minutes to Hours Converter specialises in decimal hours for timesheets and rounds to a quarter hour.
- Time Duration Calculator adds up lists of durations written in different styles.
- Time Zone Converter shifts a clock time from one place to another.
- Timestamp Converter changes a Unix timestamp into a date and the other way round.
Checked against the current version of the Time Unit Converter on .

