Seconds or milliseconds
Up to 11 digits are read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and longer numbers as nanoseconds. You can also choose the unit yourself.
Convert Unix timestamps in seconds, milliseconds, microseconds or nanoseconds to dates in any time zone, and dates back to epoch time.
Paste a Unix timestamp or select “Use current time”. The unit is detected from the number of digits.
The date is shown in UTC and in the time zone you select, which starts as the time zone of your device.
Switch to “Date to timestamp”, enter a date and time, and copy the timestamp in seconds or milliseconds.
Up to 11 digits are read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and longer numbers as nanoseconds. You can also choose the unit yourself.
When clocks go back, a local time happens twice and the earlier moment is used. A time skipped when clocks go forward is flagged.
Unix time treats every day as exactly 86,400 seconds, like most operating systems and programming languages.
For dates near the present, seconds commonly have 10 digits and milliseconds 13. Select the unit explicitly when converting, especially for historical or far-future dates. A timestamp identifies an instant; the chosen time zone changes how that instant is displayed.
The number of seconds since 1 January 1970 at 00:00:00 UTC, also called epoch time. At a given moment, it is the same everywhere in the world.
In JavaScript, use Math.floor(Date.now() / 1000). In PHP, use time(). In Python, use int(time.time()).
Systems that store timestamps as signed 32-bit integers overflow on 19 January 2038 at 03:14:07 UTC. 64-bit timestamps, as used here, are not affected.