What is a Unix timestamp?
A Unix timestamp (epoch time) is the number of seconds since 1 January 1970, 00:00:00 UTC. It is the same everywhere in the world, which is why servers, databases and APIs use it to store points in time. JavaScript and many APIs use milliseconds instead (13 digits).
How to use the converter
- Paste a timestamp – the tool detects seconds, milliseconds, microseconds or nanoseconds by its length.
- Read the date in your own time zone, in UTC and in ISO 8601 format.
- To go the other way, pick a date and time and choose whether it is in your time zone or UTC.
Useful facts
0= 1 January 1970, 00:00:00 UTC.1000000000= 9 September 2001.2147483647= 19 January 2038, the last second a signed 32-bit number can store (the “Year 2038 problem”).- Negative timestamps are dates before 1970.
Frequently asked questions
Is a Unix timestamp in UTC?
Yes. The number itself has no time zone; it always counts from 1970 in UTC. Only the displayed date depends on your time zone.
Why does my timestamp have 13 digits?
It is in milliseconds. The converter recognises this automatically; divide by 1000 to get seconds.
Does it handle leap seconds?
Unix time ignores leap seconds, as do almost all systems. Each day counts as exactly 86,400 seconds.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). SQL (MySQL): UNIX_TIMESTAMP().