Unix Timestamps: Seconds vs Milliseconds and the Year 2038
A Unix timestamp counts seconds since 00:00 UTC on 1 January 1970. Telling 10-digit seconds from 13-digit milliseconds, time zones, and the 2038 problem.
📚 Free Web Tools · 21/52·⏱ About 4min read·Information updated 2026-11-03
📋 Key facts5
Epoch
1970-01-01 00:00:00 UTC
Digits
Seconds have 10 digits, milliseconds 13 (as of 2026)
Korea time
UTC+9, no daylight saving time
Year 2038
Signed 32-bit time ends at 2038-01-19 03:14:07 UTC
Leap seconds
Unix time does not count leap seconds
A moment written as one number
A Unix timestamp (Unix time, epoch time) is the number of seconds elapsed since 00:00:00 Coordinated Universal Time (UTC) on 1 January 1970. Because it writes a date as a single number rather than year-month-day hour:minute:second, it is easy for computers to store, compare and subtract. That is why it appears so often in server logs, databases and API responses. This site's timestamp converter turns a number into UTC, your device's local time and ISO 8601 format all at once.
A number without a time zone
Timestamps are based on UTC, so the same moment has the same number everywhere in the world. Dates look different from country to country because a time zone is applied when the number is turned into a readable time. Korea Standard Time is nine hours ahead of UTC and, as of November 2026, has no daylight saving time, so adding nine hours to UTC gives Korean time. For example, 1700000000 is 22:13:20 on 14 November 2023 in UTC, and 07:13:20 on 15 November in Korea.
1700000000 → 2023-11-14 22:13:20 UTC
Same value → 2023-11-15 07:13:20 Korea time
Korea time = UTC + 9 hours
Telling seconds from milliseconds
The most common mistake is mixing up seconds and milliseconds. Unix-style programs and many APIs use seconds, while JavaScript's Date.now(), Java and others use milliseconds. Today (2026) a value in seconds has 10 digits and a value in milliseconds has 13, so the digit count tells them apart. Reading milliseconds as seconds gives a date tens of thousands of years ahead; reading seconds as milliseconds gives a date in January 1970. This site's converter treats values with 11 or more digits as milliseconds automatically, and you can also choose the unit yourself.
How long will 10 digits stay 10 digits?
The value in seconds became 10 digits when it reached 1,000,000,000 at 01:46:40 UTC on 9 September 2001, and it will become 11 digits when it reaches 10,000,000,000 on 20 November 2286. Until then, the rule of thumb that 10 digits means seconds and 13 digits means milliseconds holds. Times before 1970 are written as negative numbers.
The year 2038 problem
If a timestamp is stored as a signed 32-bit integer, the largest value it can hold is 2,147,483,647. That is 03:14:07 UTC on 19 January 2038, and one second later the number overflows to a negative value, which reads as December 1901. This is the year 2038 problem. Most operating systems and languages today handle time in 64 bits, but 32-bit fields may remain in older devices, database columns and file formats, so systems that deal with far-off dates such as expiry dates should be checked in advance.
Leap seconds are not counted
Real clocks occasionally insert a leap second to stay in step with the Earth's rotation, but Unix time always treats a day as 86,400 seconds. So the difference between two timestamps can differ from the actual elapsed seconds by the number of leap seconds in between. It is a difference you can ignore in everyday date calculations, but precise time measurement uses other time scales.
Using it alongside ISO 8601
Where people need to read the time, ISO 8601 format, which writes the date, time and offset together as in 2026-11-03T09:00:00+09:00, is convenient. A trailing Z means UTC. If only a date and time are written without a time zone, programs may differ on whether to read it as local time or UTC, so data you exchange should always carry a time zone or use a timestamp instead.
Summary
When working with timestamps, checking two things, the unit and the time zone, prevents most mistakes.
The epoch is 1970-01-01 00:00:00 UTC
10 digits are seconds, 13 are milliseconds (as of 2026)