How it’s calculated
A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970 (the epoch), ignoring leap seconds. POSIX defines every day as exactly 86,400 seconds, so converting is pure arithmetic. All results here are in UTC and do not depend on the time zone of your device.
Example: 1,700,000,000 seconds is 19,675 days (1,699,920,000 s) plus 80,000 s, which is 22 h 13 min 20 s into the day. Day 19,675 after 1970-01-01 is 14 November 2023, so the timestamp is 2023-11-14T22:13:20Z, a Tuesday. The same instant in India (UTC+05:30) is 15 November 2023, 03:43:20.
Milliseconds: many systems (JavaScript, Java) use milliseconds, which are 1,000 times larger. A value above 1e11 is treated as milliseconds, because as seconds it would be in the year 5138 or later (so second-based dates beyond that year are not supported). Negative values are before 1970.
Frequently asked questions
Is the timestamp in seconds or milliseconds?
Ten digits (like 1700000000) are seconds; thirteen digits (like 1700000000000) are milliseconds. The converter treats numbers above 100,000,000,000 as milliseconds and says which it used. Millisecond values below that (1970 to early 1973) are read as seconds.
Does a Unix timestamp have a time zone?
No. It identifies one instant worldwide. Only the display of it as a date and time depends on the time zone, which is why results here are shown in UTC.
What happens in 2038?
Systems that store the timestamp as a signed 32-bit number overflow at 2,147,483,647 (19 January 2038, 03:14:07 UTC). This converter uses larger numbers and is not affected.
Are leap seconds counted?
No. POSIX time treats every day as 86,400 seconds, so leap seconds are not counted and the timestamp stays in step with UTC dates.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- POSIX Base Definitions 4.16 Seconds Since the Epoch — The Open Group
- Time and Frequency Division — U.S. National Institute of Standards and Technology
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator