Unix Timestamp Converter

Date and time (UTC)2023-11-14 22:13:20 UTC
Day of the weekTuesday
Days since the epoch19,675
Time of day22:13:20
In milliseconds (JavaScript style)1,700,000,000,000
How this was calculated
  1. Divide by 86,400 seconds per day: 1,700,000,000 s is 19,675 whole days plus 80,000 seconds. Day 19,675 converts to 14 Nov 2023, and the leftover seconds are 22:13:20 — so the moment is 2023-11-14 22:13:20 UTC, a Tuesday.
  2. The epoch itself — timestamp 0 — is midnight at the start of Thursday, 1 January 1970 UTC. Everything is counted in UTC; a timestamp carries no timezone, so the same number is a different local clock time in different places.
  3. JavaScript and many APIs use milliseconds instead: multiply by 1,000 to get 1,700,000,000,000 ms. Mixing the two up is the classic bug that lands dates in 1970 or the year 56000.

A Unix timestamp converter translates between human-readable dates and the raw count of seconds since 00:00:00 UTC on Thursday, 1 January 1970 — the epoch. Timestamp 0 is 1970-01-01 00:00:00 UTC, a Thursday; 1000000000 is 2001-09-09 01:46:40 UTC, a Sunday; and 1700000000 is 2023-11-14 22:13:20 UTC, a Tuesday. Because timestamps are timezone-free, the same number represents different local clock times in different places, which is the point: one unambiguous instant for everyone. Our converter gives you the date, time, and weekday for any timestamp — or the exact timestamp for any date you enter.

Counting seconds from a fixed epoch is the accepted standard because it avoids calendars, timezones, and leap seconds in storage; the weekday follows directly from the day count. The epoch was a Thursday, so weekday = (days + 4) mod 7 with Sunday = 0. For example, 1000000000 falls 11,574 days after the epoch and 1700000000 falls 19,675 days after. This page shows the formula, step-by-step workings, worked examples, and sources — plus a note that JavaScript uses milliseconds (timestamp × 1,000), since confusing the two lands dates in 1970 or the year 56000.

Worked examples

The epoch itself

Primary result: 1970-01-01 00:00:00 UTC. (Timestamp → date (UTC) · 0 · 0 days · 0 s)

Date and time (UTC)1970-01-01 00:00:00 UTC
Day of the weekThursday
Days since the epoch0
Time of day00:00:00
In milliseconds (JavaScript style)0

A recent timestamp

Primary result: 2023-11-14 22:13:20 UTC. (Timestamp → date (UTC) · 1700000000 · 0 days · 0 s)

Date and time (UTC)2023-11-14 22:13:20 UTC
Day of the weekTuesday
Days since the epoch19,675
Time of day22:13:20
In milliseconds (JavaScript style)1,700,000,000,000

The famous 1234567890

Primary result: 2001-09-09 01:46:40 UTC. (Timestamp → date (UTC) · 1000000000 · 0 days · 0 s)

Date and time (UTC)2001-09-09 01:46:40 UTC
Day of the weekSunday
Days since the epoch11,574
Time of day01:46:40
In milliseconds (JavaScript style)1,000,000,000,000

What a Unix timestamp counts

A Unix timestamp counts seconds that have elapsed since 00:00:00 UTC on Thursday, 1 January 1970. That fixed starting moment is called the epoch, and every Unix timestamp converter you encounter works by measuring the distance from it. Timestamp 0 is exactly 1970-01-01 00:00:00 UTC, which fell on a Thursday. From there, the count simply moves forward, one second at a time, with no built-in concept of months, leap years, or timezones.

The whole computing industry agreed on this single reference point because it removes ambiguity. Timestamps are timezone-free: the same number represents different local clock times in different places, which is exactly the point. A server in Tokyo and a server in New York can both store timestamp 1700000000 and know they are referring to the same instant, even though their local clocks display different times. That shared, neutral reference makes it possible for systems around the world to exchange time data without first negotiating whose local calendar applies.

The weekday of any timestamp follows directly from the day count. Because the epoch was a Thursday, you can compute the weekday with the formula weekday = (days + 4) mod 7, where Sunday equals 0. For example, timestamp 1000000000 falls 11,574 days after the epoch, and timestamp 1700000000 falls 19,675 days after it. Working through the formula confirms what a converter shows: 1000000000 is 2001-09-09 01:46:40 UTC, a Sunday, and 1700000000 is 2023-11-14 22:13:20 UTC, a Tuesday.

One common source of confusion is that not every system counts plain seconds. JavaScript uses milliseconds, so a JavaScript timestamp is the Unix timestamp multiplied by 1,000. Mixing the two produces dramatic errors: treating a millisecond value as seconds lands dates in 1970, while treating seconds as milliseconds pushes dates out to the year 56000. When you use a Unix timestamp converter, check which unit your platform expects before trusting the result.

Worked examples

The fastest way to understand any unix timestamp converter is to see it in action. Below are three verified conversions that show how raw seconds map to human-readable dates. Each row pairs the timestamp with its UTC date, time, and weekday, giving you a quick reference for checking your own calculations or code.

The weekday in each result is not a coincidence. Because the epoch fell on a Thursday, the weekday follows directly from the day count: weekday = (days + 4) mod 7, with Sunday = 0. Take 1700000000, which falls 19,675 days after the epoch. Plugging in, (19675 + 4) mod 7 = 2, which corresponds to Tuesday — matching the verified result. The same logic applies to 1000000000, which falls 11,574 days after the epoch: (11574 + 4) mod 7 = 0, meaning Sunday.

Notice that all three conversions are expressed in UTC. Timestamps are timezone-free: the same number represents different local clock times in different places, which is exactly the point. A user in New York reading timestamp 1700000000 on a local clock would see a different time than a user in Tokyo, but the underlying value — and the UTC equivalent — stays constant. That is why a reliable converter always displays UTC alongside any local time.

One last caution when testing these values in JavaScript: the language uses milliseconds, not seconds. Multiply the timestamp by 1,000 before passing it to a Date constructor. Forgetting that step is the most common source of conversion errors, and it lands dates in 1970 or, when the math runs the wrong direction, somewhere near the year 56000. Use the table below as a sanity check.

TimestampUTC Date and TimeWeekdayDays After Epoch
01970-01-01 00:00:00 UTCThursday0
10000000002001-09-09 01:46:40 UTCSunday11,574
17000000002023-11-14 22:13:20 UTCTuesday19,675
Always multiply by 1,000 when using these timestamps in JavaScript — the language tracks milliseconds, not seconds.

How the conversion works

A Unix timestamp converter works by counting forward from a fixed starting point: 00:00:00 UTC on Thursday, 1 January 1970, known as the epoch. Timestamp 0 maps to that exact moment. To turn a timestamp into a calendar date, the converter first divides the total seconds by 86,400 — the number of seconds in one day — to get the number of whole days since the epoch, plus a remainder that becomes the time of day. For example, timestamp 1700000000 divided by 86,400 gives 19,675 days after the epoch, with a remainder of 22:13:20. That result is 2023-11-14 22:13:20 UTC, a Tuesday. Timestamp 1000000000 works the same way: it falls 11,574 days after the epoch, landing on 2001-09-09 01:46:40 UTC, a Sunday.

Once the converter has the day count, it needs to turn that number into a year, month, and day. This is where Howard Hinnant's civil-from-days algorithm comes in. The algorithm takes the total days since the epoch and works backward through a fixed set of arithmetic steps to produce a correct calendar date. It accounts for leap years by using a continuous day count rather than stepping through years one at a time. Because the math is based on integer division and remainders, the same input always produces the same output, with no rounding errors creeping in over time.

The weekday follows directly from the day count. The epoch was a Thursday, and JavaScript numbers weekdays with Sunday = 0, so the formula is weekday = (days + 4) mod 7. For 19,675 days after the epoch, (19675 + 4) mod 7 = 2, which is Tuesday — matching the verified result. For 11,574 days, (11574 + 4) mod 7 = 0, which is Sunday. The weekday never needs a separate lookup table.

The system never drifts because timestamps are timezone-free. The same number represents the same instant everywhere on Earth, even though local clock times differ — which is the point of using a universal count. One common source of error is mixing up units: JavaScript uses milliseconds, so a seconds-based timestamp must be multiplied by 1,000 before being passed to JavaScript's date functions. Confusing the two lands dates in 1970 or the year 56000.

Seconds vs milliseconds

A Unix timestamp counts seconds since 00:00:00 UTC on Thursday, 1 January 1970 — the epoch. That definition is simple, but it hides a trap that catches nearly every developer sooner or later. JavaScript uses milliseconds, not seconds, so the same number means two very different things depending on where you use it. Any unix timestamp converter has to know which unit it is reading, or the result is garbage.

The symptoms are unmistakable. If you feed a seconds-based timestamp into JavaScript without multiplying by 1,000, the date comes back in 1970 — usually January or February, because a billion seconds is only about 38 years, and JavaScript reads it as a billion milliseconds, roughly 11 and a half days after the epoch. Verified: timestamp 0 is 1970-01-01 00:00:00 UTC, a Thursday; 1000000000 is 2001-09-09 01:46:40 UTC, a Sunday. In JavaScript that same 1000000000 reads as 1970-01-12, which is clearly wrong.

The reverse mistake is worse. If you feed a JavaScript-style milliseconds value into a system that expects seconds, you get dates tens of thousands of years in the future. Multiply a normal modern timestamp by 1,000 and the year lands around 56000. There is no graceful error — the number is valid, the math runs, and the output just looks absurd. This is why the 1970 and 56000 symptoms are the classic sign of a unit mismatch, not a logic bug.

The weekday follows from the day count, which is why it also breaks when units are wrong. The epoch was a Thursday, so weekday = (days + 4) mod 7 with Sunday = 0. Verified: 1000000000 falls 11,574 days after the epoch, and 1700000000 falls 19,675 days after. With the correct day count, 1700000000 is 2023-11-14 22:13:20 UTC, a Tuesday. With the wrong unit, the day count is off by a factor of 1,000 and the weekday drifts with it.

Timestamps are timezone-free: the same number is different local clock times in different places, which is the point. But the unit is not negotiable. Seconds and milliseconds are not interchangeable, and no timezone adjustment will fix a value that is off by three orders of magnitude. Check the unit first, before anything else.

If your result shows 1970, you fed seconds into a milliseconds system. If it shows the year 56000, you fed milliseconds into a seconds system. Multiply or divide by 1,000 and try again.

Timestamps have no timezone

A Unix timestamp counts seconds since 00:00:00 UTC on Thursday, 1 January 1970 — the epoch. Because the starting point is fixed in UTC, the count itself never shifts. Timestamp 0 is 1970-01-01 00:00:00 UTC, a Thursday. The number 1700000000 is 2023-11-14 22:13:20 UTC, a Tuesday, and 1000000000 is 2001-09-09 01:46:40 UTC, a Sunday. None of those values carry a timezone label, and none need one.

Timestamps are timezone-free: the same number is different local clock times in different places, which is the point. When a server in Tokyo and a server in New York both record 1700000000, they store the same integer. Anyone can later convert that integer to whatever local display they want, and the underlying record stays consistent. This prevents the classic bug where two systems exchange a date string like "2023-11-14 10:00 PM" and each applies its own offset, producing two different instants. With a raw count of seconds, there is nothing to reinterpret.

What it causes is a different problem: the number alone tells you nothing readable. You cannot glance at 1700000000 and know it falls 19,675 days after the epoch, or that 1000000000 falls 11,574 days after. A unix timestamp converter exists precisely to bridge that gap, turning the count into a calendar date and clock time for a chosen timezone. The conversion always requires a timezone choice, even though the timestamp itself does not store one.

One more pitfall comes from unit confusion. JavaScript uses milliseconds (timestamp × 1,000); confusing the two lands dates in 1970 or the year 56000. A separate, smaller trap involves the weekday. The weekday follows from the day count: the epoch was a Thursday, so weekday = (days + 4) mod 7 with Sunday = 0. That formula works because the count starts on a known weekday, not because the timestamp encodes one.

Edges: 2038 and before the epoch

A Unix timestamp counts seconds since 00:00:00 UTC on Thursday, 1 January 1970 — the epoch. That starting point means timestamps before the epoch are negative numbers, and a unix timestamp converter must handle them to display dates in 1969 and earlier. The math is straightforward: a timestamp of -86,400 represents exactly one day before the epoch, which is 1969-12-31 00:00:00 UTC. Negative timestamps work the same way as positive ones in calculations, including the weekday formula, where weekday = (days + 4) mod 7 with Sunday = 0.

The bigger edge case arrives on 19 January 2038. Systems that store the timestamp as a signed 32-bit integer can represent values up to 2,147,483,647, which corresponds to 03:14:07 UTC on that date. One second later, the counter overflows and wraps to a large negative number, which those systems interpret as 13 December 1901. This is the Year 2038 problem. Modern 64-bit systems avoid it entirely, since a 64-bit signed integer can represent timestamps hundreds of billions of years into the future, but older embedded hardware and legacy software may still fail.

Because timestamps are timezone-free, the 2038 overflow happens at the same instant worldwide — only the local clock display differs. A machine in Tokyo shows 12:14:08 when the overflow occurs, while a machine in New York shows 22:14:07 the previous day, but the underlying timestamp value is identical. This property is the point of the format: one number, one moment, no timezone tables required.

  • Timestamp 0 is 1970-01-01 00:00:00 UTC, a Thursday; timestamps before this moment are negative.
  • Signed 32-bit timestamps overflow at 2,147,483,647 seconds — 2038-01-19 03:14:08 UTC — and wrap to 1901.
  • JavaScript uses milliseconds (timestamp × 1,000); confusing the two lands dates in 1970 or the year 56000.
If your converter shows 1901 for a 2038 date, the underlying system is using 32-bit timestamps and has overflowed.

FAQs

What date is timestamp 1700000000?

Timestamp 1700000000 corresponds to 2023-11-14 22:13:20 UTC, which fell on a Tuesday. You can verify this instantly with our converter above by entering the number.

What is the Unix timestamp for 1 January 1970?

The Unix timestamp for 1 January 1970 is 0, representing midnight at the start of Thursday, 1 January 1970 UTC. This moment is known as the Unix epoch, the starting point for all timestamp calculations.

How is a timestamp converted to a date?

Divide the timestamp by 86,400 to get days since the epoch, then convert the day count to a civil date. The remainder from that division gives you the time of day, which you can express in hours, minutes, and seconds.

Why do some timestamps have 13 digits?

Because many APIs, such as JavaScript Date, count milliseconds instead of seconds. A 13-digit value read as seconds would be interpreted as a date in January 1970. Divide by 1,000 to convert milliseconds to a standard seconds-based timestamp.

What is the year 2038 problem?

Signed 32-bit timestamps overflow at 03:14:07 UTC on 19 January 2038, meaning systems using that format cannot represent later times. 64-bit systems are unaffected for practical purposes and handle far larger timestamp values without issue.

Is a Unix timestamp in UTC or local time?

A Unix timestamp is always the same instant worldwide — UTC. Only its local representation changes with timezone. The raw number of seconds since the epoch does not shift based on where you are; only the displayed date and time differ.

Sources

Related calculators

Military Time Converter
Convert 24-hour military time to standard AM/PM time — with the spoken form ('thirteen thirty hours') and minutes since midnight.
Age Calculator
Exact age from a birth date: years, total months, total days and weeks lived, and how many days until the next birthday.
Workdays Between Dates Calculator
Business days between two dates: the Monday–Friday count found by scanning every day, the weekend days in the span, and your own weekday holidays subtracted — for deadlines, notice periods and project plans.
Age in Days Calculator
Exactly how many days old someone is, plus the date of the next round-number milestone — the 10,000-day celebration calculators miss.