Unix timestamps: frequently asked questions

Last updated 2026-11-29

The questions that come up most often when a timestamp turns into the wrong date, answered with the exact rule the converter applies.

Quick answers

SituationRule applied
10-digit inputread as seconds
13-digit inputread as milliseconds
Input equal to 0rejected, because input must be greater than zero
Input with decimalsfraction kept as milliseconds
Date to timestampfloor of milliseconds divided by 1000
Value above 1e12read as milliseconds, even if it was meant as seconds

Most wrong-date reports come from one of these six rows, not from a broken clock. Before changing code, compare the failing value with 1700000000, which must render as 2023-11-14T22:13:20Z. If it does, the converter and the browser are working, and the problem is the unit or the zone of the data you passed in.

Frequently asked questions

Is my value in seconds or milliseconds?

Count the digits. Up to 12 digits is treated as seconds, 13 digits as milliseconds, and the converter switches at exactly 1e12. 1760000000 and 1760000000000 are the same instant: 2025-10-09T08:53:20Z.

Why does the converter reject 0?

The input check requires a positive number, and zero fails it along with negative values. Zero does represent the epoch, 1970-01-01T00:00:00Z, so enter 1 if you want to see the first second.

Which time zone does a timestamp use?

None. It counts seconds from a fixed UTC epoch, so the number is identical worldwide. The local line in the result comes from the browser's zone, while the ISO line with Z is always UTC.

Why is my converted time exactly 8 hours off?

A UTC value is being read as local time, or the reverse. Compare against 1700000000, which is 2023-11-14T22:13:20Z and 2023-11-15 06:13:20 in UTC+8. An eight-hour gap confirms the offset, not a bad timestamp.

Does daylight saving change the timestamp?

No. The instant is fixed; only the local rendering moves by an hour. A value stored at 09:00 local before the clock change displays as 08:00 after it, with the same underlying number.

Can I enter a decimal timestamp?

Yes. 1760000000.5 is multiplied by 1000 to give 1760000000500 milliseconds, so the half second is preserved. Converting a date back to a timestamp floors the value and drops the milliseconds.

What happens to timestamps in 2038?

2147483647 is the signed 32-bit maximum, equal to 2038-01-19T03:14:07Z. One second later a 32-bit clock wraps to 1901. JavaScript and 64-bit systems keep counting, so the fix is wider storage, not shorter dates.

Do leap seconds affect the result?

No. Unix time assumes every day has 86,400 seconds and skips the 27 leap seconds inserted since 1972. A timestamp never shows 23:59:60, and no correction is needed for logs or scheduling.

Why did 1000000000000 show 2001 instead of year 33658?

Because 1e12 is the switch point. Anything at or above it is read as milliseconds, and 1e12 milliseconds is 2001-09-09T01:46:40Z. A twelve-digit value just below it is still read as seconds and lands in year 33658.

How do I get the timestamp for a specific local time?

Pick the date and time in the lower field. The browser treats it as local, so 2026-01-01 08:00 in UTC+8 gives 1767225600, while the same input in London gives 1767254400.

Open the Timestamp Converter

Keep reading