Skip to content
DATETOOLS

Time Unit Converter

Convert any duration between units of time, from nanoseconds to centuries, with exact conversions where the units are fixed and a stated assumption where they are not.

Converted duration

years to weeks

521775

Uses average lengths: a year of 365.2425 days and a month of 30.436875 days.

1 year is 52.1775 weeks, on the average lengths stated below.

1 year in every unit at once. Rows marked "average" depend on an assumption, which is printed underneath.
UnitValueBasis
nanoseconds31,556,952,000,000,000average
microseconds31,556,952,000,000average
milliseconds31,556,952,000average
seconds31,556,952average
minutes525,949.2average
hours8,765.82average
days365.2425average
weeks52.1775average
months12average
years1average
decades0.1average
centuries0.01average

The rows marked "average" use a Gregorian mean year of 365.2425 days and a mean month of 30.436875 days, which is that year divided by twelve. A real month is 28, 29, 30 or 31 days, so if you need a real one, use the days between dates calculator with real dates.

Years are not a fixed length, so every row in this table is an average rather than an exact figure.

How many weeks are in a year

A common year is 52 weeks and 1 day, because 365 divided by 7 is 52.142857 and not a whole number. A leap year is 52 weeks and 2 days. 2026 is a common year, so it has 365 days and 52 weeks and 1 left over.

That leftover day is why your birthday moves forward one weekday each year, and two after a leap year. It is also why "52 weeks" and "a year" are not interchangeable in a contract.

The units that are not a fixed length

Most time units are exact. Sixty seconds make a minute, sixty minutes make an hour, twenty-four hours make a day. Those conversions have one right answer and this tool gives it.

Three units do not work that way, and any converter that pretends otherwise is quietly guessing on your behalf.

A month is 28, 29, 30 or 31 days. There is no such thing as "a month in days" without saying which month. When you convert to or from months, this tool uses an average month of 30.436875 days, which is the mean over a 400-year Gregorian cycle, and it says so under the result. If you need a real month, use the date calculator instead and give it real dates.

A year is 365 or 366 days. The average over the Gregorian cycle is 365.2425 days, which is what this tool uses. That average is itself the whole design of the calendar: 365 days plus a leap day every four years, minus one every hundred, plus one back every four hundred.

A day is almost always 24 hours, and twice a year in most of the world it is 23 or 25 because the clocks change. Very occasionally it is 86,401 seconds because a leap second has been inserted. For converting a duration, 24 hours is the right assumption and this tool uses it. For working out what time something actually happens, use the hours calculator, which handles the real days.

So: exact where exact exists, one clearly stated assumption where it does not, and a pointer to the right tool when you need the real thing. That is the whole design of this page.

Which second are we talking about

For everyday purposes there is one second and this section does not matter. For anything scientific or technical, there are two answers.

The SI second is defined by a caesium atomic transition and does not vary. Atomic clocks count these, and so does International Atomic Time.

The day, meanwhile, is set by the Earth’s rotation, which is not perfectly regular and is gradually slowing. Because 86,400 SI seconds and one rotation of the Earth are not exactly equal, the two drift apart.

Leap seconds exist to close that gap. Coordinated Universal Time has occasionally had an extra second inserted, giving a minute with 61 seconds in it, to keep clock time aligned with the Earth. There is an agreed plan to stop doing this, because a minute that is sometimes 61 seconds long breaks a great deal of software.

This converter uses fixed 60-second minutes throughout. If you are doing work where leap seconds matter, you already know that you need a different tool.

Common conversions

Every figure here is computed by the same code the converter uses, not typed in.
Question Answer
Seconds in a minute 60
Seconds in an hour 3,600
Seconds in a day 86,400
Seconds in a week 604,800
Seconds in an average year 31,556,952
Minutes in a day 1,440
Minutes in a week 10,080
Hours in a week 168
Hours in an average month 730.485
Hours in an average year 8765.82
Days in an average year 365.2425
Weeks in a year 52 weeks and 1 day, or 2 days in a leap year
Milliseconds in a day 86,400,000

For developers

Some values worth having in one place.

A Unix timestamp counts seconds since 1 January 1970 at 00:00:00 UTC, and it does not count leap seconds. A millisecond timestamp is the same thing times 1,000, which is what JavaScript’s Date.now() returns.

The 32-bit signed limit is 2,147,483,647 seconds, which runs out on 19 January 2038. That is the year 2038 problem, and it is why timestamps should be stored in 64 bits.

Common intervals in seconds: an hour is 3,600, a day 86,400, a week 604,800, thirty days 2,592,000, a 365-day year 31,536,000.

Do not derive a date by adding seconds to a timestamp and hoping. Adding 86,400 seconds moves you forward exactly 24 hours, which is not the same as moving to the same time tomorrow when the clocks change in between. Use a date library, and read the hours calculator page if you want the detail.

Frequently asked questions

How many seconds are in a day?

86,400, on any day where the clocks do not change. Twice a year in most of the world a day is 82,800 or 90,000 seconds because an hour is removed or added.

How many hours are in a year?

8765.82 hours in an average Gregorian year of 365.2425 days. A common year is 8,760 hours and a leap year is 8,784.

How many days are in a month?

Between 28 and 31, so there is no single answer. This converter uses an average of 30.436875 days when you convert to or from months. For a real month, use the date calculator with real dates.

How many weeks are in a year?

52 weeks and one day in a common year, or 52 weeks and two days in a leap year. This is why a fixed date falls on a different weekday each year.

Why does your converter say a year is 365.2425 days?

Because that is the average length of a year in the Gregorian calendar: 365 days, plus a leap day every four years, minus one every hundred years, plus one back every four hundred. It is the number the calendar is designed around.

What is a leap second?

An extra second occasionally added to Coordinated Universal Time to keep clock time aligned with the Earth’s rotation, which is slowly slowing. It produces a minute with 61 seconds. There is an agreed plan to end the practice.

The link copies with the result, so it opens on the same conversion.