TimezoneCalculator

Timestamp converter

Epoch values in an explicit unit. No guessing between seconds and milliseconds — just a warning when a value looks like the other one.

Timestamp to date

Unit

Unit is never guessed: seconds selected. Accepted range -8640000000000 to 8640000000000. Time scale: POSIX (leap seconds not counted).

UTC2023-11-14T22:13:20.000Z

Same instant in your zones
ZoneLocalOffsetRFC 9557
UTCTue 14 Nov 2023 22:13:20UTC+00:002023-11-14T22:13:20Z[UTC]
America/New_YorkTue 14 Nov 2023 17:13:20UTC-05:002023-11-14T17:13:20-05:00[America/New_York]
Asia/KolkataWed 15 Nov 2023 03:43:20UTC+05:302023-11-15T03:43:20+05:30[Asia/Kolkata]
Asia/TokyoWed 15 Nov 2023 07:13:20UTC+09:002023-11-15T07:13:20+09:00[Asia/Tokyo]
Same instant in other units
seconds1700000000
milliseconds1700000000000
microseconds1700000000000000
nanoseconds1700000000000000000

Date to timestamp

Seconds1730597400
Milliseconds1730597400000
UTC2024-11-03T01:30:00.000Z

Units are your choice

Unix tools and most server languages count seconds; JavaScript and Java count milliseconds; databases and tracing systems often use micro- or nanoseconds. The same digits mean dates thousands of years apart depending on the unit, so this converter never switches units by itself. It warns when a value is implausible for the unit you picked.

Values are parsed as big integers, so nanosecond digits are shown exactly instead of being rounded through a floating-point number.

Limits

Dates are supported in the ECMAScript range of ±8,640,000,000,000,000 ms (about ±273,790 years from 1970), using the proleptic Gregorian calendar. Negative values are before 1970. Leap seconds are not counted, as on POSIX systems; a time like 23:59:60 is not representable.

Questions

How do I tell seconds from milliseconds?

Current dates are 10 digits in seconds and 13 in milliseconds. If the result is in 1970 or in the year 50,000, the unit is probably wrong.

Why is a decimal timestamp rejected?

Fractions of a second in floating point lose precision. Enter the value as an integer in a finer unit instead.