What is a Unix timestamp?
The number of seconds that have passed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It identifies one instant regardless of time zone, which makes it a reliable way to store and compare times.
How do I convert a Unix timestamp to a date?
Paste it into the converter above and read the date in UTC or in any time zone you pick. In code, multiply seconds by 1,000 for JavaScript's new Date(), or use datetime.fromtimestamp(ts, tz=timezone.utc) in Python.
How do I tell seconds from milliseconds?
Count the digits. Current timestamps in seconds have 10 digits and in milliseconds 13. The converter switches to milliseconds at 13 digits and shows which unit it used.
What is the current Unix timestamp?
It is shown live at the top of this page, updating every second, with buttons to copy it in seconds or milliseconds. On the command line, date +%s prints it on Linux and macOS.
Is a Unix timestamp the same in every time zone?
Yes. A timestamp counts seconds from a fixed instant in UTC, so it is identical everywhere. Only its display as a local date and time changes from zone to zone.
Why does my timestamp show a date in 1970?
The value is in seconds but was read as milliseconds, so it lands a few weeks after the epoch. Multiply by 1,000 before passing it to an API that expects milliseconds, such as JavaScript's Date.
Why is my converted time a few hours off?
A time zone was probably applied twice, or a local time was saved as if it were UTC. Store times in UTC with a Z or explicit offset and convert only for display; check the zone selector here matches the zone you expect.
Does Unix time include leap seconds?
No. Unix time assumes every day has exactly 86,400 seconds. During a leap second, systems repeat or smear a second instead, and none has been added since the end of 2016.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038 and jump back to 1901. 64-bit storage avoids it; older embedded devices, file formats and some database column types still need checking.
Which time zone does the converter use?
Your browser's zone by default. Pick any IANA zone, such as Asia/Kolkata, Europe/London or America/New_York, to see the same instant there with the correct daylight-saving offset.
Is my data sent anywhere?
No. Conversion uses your browser's built-in date and time zone functions in this tab, so timestamps from logs or tokens never leave your device.