Unix Timestamp Converter

Timestamps to dates and back, in any time zone.

Free tools that run in your browser. Nothing you type, open or create is uploaded to NerdBible or anyone else.

0Unix time now, seconds
0Milliseconds

Timestamp to date

Date to timestamp

Unix time counts the seconds since 1 January 1970 at midnight UTC, ignoring leap seconds. Time zone rules, including daylight saving changes, come from your browser's own time zone database.

How to use it

  1. Paste a Unix timestamp. Seconds, milliseconds, microseconds and nanoseconds are told apart by length, or choose the unit.
  2. Read the date in UTC, in your own time zone and in any time zone you pick.
  3. To go the other way, enter a date and time, say which time zone it is in, and copy the timestamp.

Questions

What is a Unix timestamp?

The number of seconds since 00:00:00 UTC on 1 January 1970. It is the same number everywhere in the world at a given moment, which is why software stores time this way.

Seconds or milliseconds?

Unix tools, PHP and most databases use seconds (10 digits today). JavaScript, Java and many APIs use milliseconds (13 digits). The tool detects which one you pasted by its length.

What is the year 2038 problem?

Systems that store the timestamp as a signed 32 bit number run out on 19 January 2038 at 03:14:07 UTC, when the count passes 2,147,483,647. Modern systems use 64 bits and are fine.

Why does the same time give a different date in another zone?

The timestamp is one moment; the date and clock time depend on where you stand. Midnight UTC is still the previous evening in New York.

About this tool

What is a Unix timestamp?

Unix time counts the seconds since midnight UTC on 1 January 1970, ignoring leap seconds. The number is the same everywhere in the world at a given moment, which is why databases, logs and APIs store time this way. Turning it into a date people can read depends on the time zone, and that is what this converter does.

Converting

  • Paste a timestamp. Seconds, milliseconds, microseconds and nanoseconds are told apart by their length, or you can choose the unit.
  • Read the date in UTC, in your own time zone and in any other zone you pick.
  • To go the other way, enter a date and time, say which zone it is in, and copy the timestamp.

Seconds or milliseconds?

Unix tools, PHP and most databases use seconds, 10 digits today. JavaScript, Java and many APIs use milliseconds, 13 digits. Mixing them up gives dates in 1970 or tens of thousands of years in the future, one of the commonest time bugs.

The year 2038 problem

Systems that store the count as a signed 32-bit number run out at 03:14:07 UTC on 19 January 2038. Modern 64-bit systems are fine, but old embedded devices and file formats are worth checking.

Time zone rules, including daylight saving, come from your browser's own database. Nothing is sent anywhere.

Related tools