DFK Studio

Convert Unix timestamps

Convert Unix time to a date and back, in UTC and your own timezone at once, with seconds and milliseconds. Nothing is uploaded.

  • Free, no account
  • Nothing is uploaded
  • Runs in your browser
Now:

How it works

  1. 1 What goes in A timestamp, or a date
  2. 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
  3. 3 What comes back The other one, in UTC and yours

What it does

Paste a timestamp and get the date; paste a date and get the timestamp. Both are shown in UTC and in your own zone side by side, because nearly every bug this gets used on is a confusion between the two.

This page does the work itself. Your data is handled by the browser and never sent anywhere — there is no server here to send it to.

Questions

Seconds or milliseconds?

Unix time is defined in seconds, and a current one is ten digits. JavaScript's Date.now() returns milliseconds, thirteen digits. Feeding one to something expecting the other lands you in 1970 or in the year 55000, so this page warns when the digit count disagrees with the unit you picked.

Why does my date come out an hour off?

Almost always daylight saving. A timestamp is an absolute instant with no zone; the offset applied when it is displayed depends on the zone and the date. That is why UTC and your local time are shown together rather than one at a time.

What is the 2038 problem?

Systems storing Unix time in a signed 32-bit integer run out on 19 January 2038, when the count exceeds 2,147,483,647. Anything using 64-bit time, which is nearly everything modern, is fine for longer than the sun has left.

Every shelf