Unix Timestamp

Now

Seconds—
Milliseconds—
UTC—
Your time—

Timestamp to date

Date to timestamp

A Unix timestamp counts seconds from 1970-01-01 00:00:00 UTC. This page also shows the millisecond value used by JavaScript. Nothing is sent to a server.

How to use

  1. Read Now for the current seconds, milliseconds, UTC time, and the time on this device. Copy seconds or Copy milliseconds puts that number on the clipboard.
  2. Paste a number into Unix time and press Convert. A value with an absolute size of 100 billion or more is read as milliseconds. A smaller number is read as seconds. 1762380000 and 1762380000000 are the same instant.
  3. To go the other way, pick a date and time and press Convert. The picker is this device's time zone, not UTC. The result includes seconds, milliseconds, and the matching UTC time.

When it helps

Logs, APIs, and databases often store an instant as an integer. Ten digits is almost always seconds. Thirteen digits is almost always milliseconds. Mixing them up shifts the date by decades. The Read as line says which one this page used.

Your time is not a second city. It is only the zone set on this computer. To compare two cities, use the time zone converter. To see many cities at the current moment, use the world clock.

Limits

Unix time ignores leap seconds. This page does too, because that is how the number is defined. A negative number is a moment before 1970. Blank input does not convert. Letters are rejected.

The date picker has no time zone menu. If you type 09:00, that is 09:00 in the zone named under Your time, then converted to UTC. It will not treat 09:00 as London unless this device is set to London.

Questions

Why are seconds and milliseconds both shown?

Seconds are the usual Unix timestamp. JavaScript, and many JSON APIs, use milliseconds. Copy the one the other system expects. They differ by a factor of 1000.

What does 1762380000 mean?

That many seconds after 1970-01-01 00:00:00 UTC. Paste it into Timestamp to date to see the UTC and local clock time. The same instant in milliseconds is 1762380000000.

Does this include leap seconds?

No. Unix time does not add a second when civil time does. The page follows that rule. It is not a clock correction for your operating system.