Unix time is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970, a moment called the Unix epoch. It ignores leap seconds and time zones, so one number means the same moment everywhere. Midnight UTC on October 22, 2026 is 1792627200. Each day adds 86,400 seconds.

If you have asked what is Unix time, you have probably seen a long number like 1792627200 in a log file, a database or an API response. That number is a date. It just counts in seconds instead of days and months.
This guide explains where the count starts, how to tell seconds from milliseconds, how to turn a timestamp into a date by hand, and why 2038 matters. To convert a timestamp right now, paste it into our Unix timestamp converter.
What Is Unix Time and Why Does It Start in 1970?
Unix time is a single number that counts the seconds since 00:00:00 UTC on Thursday, January 1, 1970, known as the Unix epoch.
The POSIX standard, published by The Open Group, defines the time() function as returning the value of time in seconds since the Epoch. The Linux manual page for time spells out the starting point: 1970-01-01 00:00:00 +0000 (UTC). Early Unix developers picked that round date, and the choice stuck as Unix ideas spread to Linux, macOS, phones and most web servers.
- Timestamp 0 is midnight UTC, January 1, 1970.
- Timestamp 86400 is one day later, January 2, 1970.
- Negative numbers count backward. Timestamp minus 86400 is December 31, 1969.
Programmers like Unix time because it is easy to store, sort and subtract. Two timestamps can be compared with simple math, with no need to parse months, time zones or a.m. and p.m. You also see it called epoch time, POSIX time or a Unix timestamp. They all mean the same thing.
What Do Famous Unix Timestamps Look Like?
Round timestamps fall on surprising dates, and a few of them mark real limits in software.
| Unix timestamp | Date and time (UTC) | Why it matters |
|---|---|---|
| 0 | Thu, Jan 1, 1970, 00:00:00 | The Unix epoch |
| 1,000,000,000 | Sun, Sep 9, 2001, 01:46:40 | First 10 digit timestamp |
| 1,500,000,000 | Fri, Jul 14, 2017, 02:40:00 | Halfway to 3 billion |
| 1,792,627,200 | Thu, Oct 22, 2026, 00:00:00 | Today at midnight UTC |
| 1,800,000,000 | Fri, Jan 15, 2027, 08:00:00 | Next round 100 million mark |
| 2,000,000,000 | Wed, May 18, 2033, 03:33:20 | Two billion seconds |
| 2,147,483,647 | Tue, Jan 19, 2038, 03:14:07 | Largest signed 32-bit value |
| 4,294,967,295 | Sun, Feb 7, 2106, 06:28:15 | Largest unsigned 32-bit value |
Computed in Python from the timestamps. Commas are added here for reading; real timestamps never contain them.
The 2,147,483,647 figure is 2 to the 31st power minus 1. You can see its binary form, thirty one 1s in a row, with the binary to decimal converter.
How Can You Tell Seconds From Milliseconds in a Timestamp?
Count the digits: a current timestamp in seconds has 10 digits, while milliseconds have 13.
Standard Unix time is in seconds, but many systems store finer units. JavaScript’s Date.now(), for example, returns milliseconds. Mixing them up is the most common timestamp bug. If you read milliseconds as seconds, you land tens of thousands of years in the future.
| Unit | Digits today | Example (Jan 15, 2027, 08:00 UTC) | To get seconds |
|---|---|---|---|
| Seconds | 10 | 1800000000 | Use as is |
| Milliseconds | 13 | 1800000000000 | Divide by 1,000 |
| Microseconds | 16 | 1800000000000000 | Divide by 1,000,000 |
| Nanoseconds | 19 | 1800000000000000000 | Divide by 1,000,000,000 |
Timestamps in seconds have had 10 digits since September 9, 2001, and will until the year 2286.
When a converter shows a year near 59000, the input was almost always milliseconds. Divide by 1,000 and try again.
How Do You Convert a Unix Timestamp to a Date by Hand?
Divide the timestamp by 86,400 to get whole days since 1970, then turn the remainder into hours, minutes and seconds.
Seconds into the day = timestamp minus days x 86,400
Hours = seconds into the day / 3,600; minutes = leftover / 60
Date to timestamp = days since Jan 1, 1970 x 86,400 + hours x 3,600 + minutes x 60 + seconds
A log line shows the timestamp 1800000000. What time is that in UTC, and on the US East Coast?
- Whole days: 1,800,000,000 / 86,400 = 20,833 days, with a remainder.
- Seconds into the day: 1,800,000,000 minus 20,833 x 86,400 = 1,800,000,000 minus 1,799,971,200 = 28,800.
- Time of day: 28,800 / 3,600 = 8 hours exactly, so 08:00:00 UTC.
- Date: 20,833 days after January 1, 1970 is January 15, 2027.
- East Coast: mid January is standard time, UTC minus 5, so it is 03:00 EST, or 3:00 a.m.
Step 4 is the slow part by hand, because you must count leap years. That is where a converter or a date tool earns its place.
For step 4, you can enter January 1, 1970 and add 20,833 days in the date calculator. To go the other way, find the days from January 1, 1970 to your date with the days between dates calculator, then multiply by 86,400.
Does Unix Time Depend on Your Time Zone?
No, Unix time is always counted in Coordinated Universal Time (UTC), so the same timestamp means the same instant everywhere on Earth.
The time zone only matters when you display the number. Timestamp 1800000000 is 08:00 in London, 03:00 in New York and 00:00 in Los Angeles that day, but it is one moment. NOAA describes UTC as the world wide 24-hour clock, also called Zulu time in military use, and notes that it does not change for daylight saving time. Unix time inherits that, so it never jumps forward or back in March or November.
- Store timestamps in UTC and convert only for display.
- If a date looks off by exactly 4 to 8 hours in the US, a tool probably showed UTC where you expected local time.
- When sharing times with people in other zones, the time zone converter shows each local clock.
How Do You Get the Current Unix Time on a Computer?
Most systems give you the current Unix time with one short command or line of code.
- Linux or macOS terminal:
date +%sprints the current time in seconds. - Python:
import timeand thenint(time.time())returns whole seconds. - JavaScript:
Math.floor(Date.now() / 1000)turns milliseconds into seconds. - Windows PowerShell:
[DateTimeOffset]::UtcNow.ToUnixTimeSeconds()returns seconds.
Converting in a spreadsheet
Excel and Google Sheets store dates as day counts, so you can switch between the two systems with one formula. Put the timestamp in cell A1 and use =A1/86400+DATE(1970,1,1), then format the cell as a date and time. To go back, use =(B1-DATE(1970,1,1))*86400. Both formulas give UTC, because spreadsheets have no time zone of their own. Subtract the right number of hours afterward if you want local time, for example 5/24 of a day for US Eastern Standard Time.
Spreadsheets can also hide precision. A 13 digit millisecond value will show the wrong date unless you divide by 86,400,000 instead. If a result looks strange, paste the raw number into the Unix timestamp converter and compare.
What Is the Year 2038 Problem?
The year 2038 problem is the moment when Unix time no longer fits in a signed 32-bit number: 03:14:07 UTC on Tuesday, January 19, 2038.
The POSIX rationale for time() says a 32-bit signed integer, as used in many historical implementations, fails in 2038. One second after 2,147,483,647, a 32-bit counter wraps to minus 2,147,483,648, which reads as Friday, December 13, 1901. The same rationale notes a 32-bit unsigned integer would last until 2106, but says the preferred fix is to make the time type wider, not unsigned.
Most modern systems already use 64-bit time. A signed 64-bit count of seconds lasts about 292 billion years. The risk sits in older embedded devices, file formats and databases that still store timestamps in 32 bits.
You can spot the risk early. Any date field that rejects or garbles a date after January 19, 2038 is likely storing 32-bit time. Test it now with a future date such as a 30 year loan end date or a long warranty, because those already reach past 2038. If the stored value comes back as a date in 1901 or 1970, the field needs a wider type.
Does Unix time count leap seconds?
No. The Linux manual explains that POSIX treats every day as exactly 86,400 seconds, ignoring leap seconds. So Unix time is not the true count of seconds since 1970. It is a simple formula based on the calendar, which is what makes conversion easy. If you need exact elapsed seconds across leap seconds, you need a different time scale.
Quick Recap
- Unix time counts seconds since 00:00:00 UTC on January 1, 1970.
- 10 digits means seconds; 13 digits means milliseconds.
- Divide by 86,400 to get days since 1970, then convert the remainder to a clock time.
- Unix time is always UTC and ignores daylight saving time and leap seconds.
- Signed 32-bit timestamps run out at 03:14:07 UTC on January 19, 2038.

Frequently Asked Questions
What is the Unix epoch?
The Unix epoch is 00:00:00 UTC on Thursday, January 1, 1970. It is timestamp 0, the point every Unix timestamp counts from. Times before it are written as negative numbers.
What is the current Unix timestamp?
It grows by one every second, so it changes as you read this. Midnight UTC on October 22, 2026 was 1792627200. A converter shows the live value along with your local date and time.
Is a Unix timestamp the same in every time zone?
Yes. It counts seconds in UTC, so a server in Tokyo and a laptop in Texas produce the same number at the same instant. Only the displayed local time differs.
How do I convert milliseconds to a Unix timestamp?
Divide by 1,000 and drop the decimals. 1800000000000 milliseconds becomes 1800000000 seconds, which is 08:00:00 UTC on January 15, 2027. A 13 digit number is almost always milliseconds.
What happens to Unix time in 2038?
Systems that store it as a signed 32-bit integer overflow after 03:14:07 UTC on January 19, 2038 and jump back to December 1901. Systems using 64-bit time are not affected.
Can a Unix timestamp be negative?
Yes. Negative values count back from 1970. Minus 86400 is midnight UTC on December 31, 1969. A signed 32-bit value can reach back to December 13, 1901.
How many seconds are in a day in Unix time?
Exactly 86,400, always. Unix time ignores leap seconds, so every day is 24 x 60 x 60 seconds. A common year is 31,536,000 seconds and a leap year is 31,622,400.
Sources
- The Open Group: POSIX time(), get time, seconds since the Epoch and the 2038 and 2106 limits
- Linux manual page: time(2), epoch definition and leap seconds being ignored
- NOAA: Z-time (Coordinated Universal Time), UTC as the world 24-hour clock, unchanged by daylight saving time
