What is a Unix timestamp?
A Unix timestamp (or epoch time) is the number of seconds elapsed since January 1, 1970 at 00:00:00 UTC. It is a single number, the same everywhere in the world, which makes it the simplest way to store and compare moments in databases, logs and APIs.
Depending on the language, the number counts seconds (10 digits today: PHP, Python, Unix) or milliseconds (13 digits: JavaScript, Java). In automatic mode, the tool treats a number of 12 digits or more as milliseconds; you can force the unit.
The time zone
A timestamp designates a precise moment and has no time zone. It is the display and the entry of a date that depend on one. Choose the time zone you want: the date shown, and a date typed without an offset, are then interpreted in that time zone, taking daylight saving time into account.
A date written with Z or with an offset (+01:00) is taken as is, whatever time zone is chosen.
Limits
The tool handles dates from the year -271821 to the year 275760, like JavaScript. Leap seconds are not counted, as in Unix time. Decimals in a timestamp in seconds are rounded to the millisecond.
Frequently asked questions
Why January 1, 1970?
It is the starting date chosen by the designers of Unix, who needed an origin close to their own time. It is called the epoch.
What will happen in 2038?
Timestamps stored in signed 32 bits cannot go past January 19, 2038. 64-bit systems, like this tool, do not have that limit.
Are my dates sent anywhere?
No. Everything is computed in your browser. Only the chosen time zone is kept in the browser's memory, so it can be restored on your next visit.
Can a timestamp be negative?
Yes: a negative number designates a date before 1970. For example, -86400 is December 31, 1969.