Unix Timestamps Explained: Seconds vs Milliseconds, Time Zones and the Year 2038 Problem
When is 1700000000? Why do some systems use 13-digit numbers? Why is the time off by exactly nine hours? Most time bugs disappear once you understand a few concepts.
A Unix timestamp (Unix time, epoch time) is a single integer counting the seconds elapsed since 00:00:00 UTC on 1 January 1970, the Unix epoch. 0 is 1970-01-01 00:00:00 UTC and 1700000000 is 2023-11-14 22:13:20 UTC.
0 → 1970-01-01 00:00:00 UTC
1700000000 → 2023-11-14 22:13:20 UTC
1735689600 → 2025-01-01 00:00:00 UTC
2147483647 → 2038-01-19 03:14:07 UTC
What a Unix timestamp is, how to tell 10-digit from 13-digit values, converting between UTC and local time, daylight saving pitfalls and the 2038 problem.Read guide →