The epoch
Input
- Timestamp: 0
- Unit: seconds
Calculation
0 seconds after 1970-01-01 00:00:00 UTC
Result
UTC 1970-01-01T00:00:00.000Z.
Translate epoch time to a calendar date and a date back into Unix seconds or milliseconds.
Overview
Unix time is the count of seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds. Millisecond timestamps are that count times 1,000 and are common in JavaScript.
Paste a number and choose seconds or milliseconds. The page shows UTC in ISO form and the same moment in your browser’s timezone.
The local date field uses your computer clock’s timezone. It does not convert civil times for another city unless that is already your timezone.
Steps
Digits only, seconds or milliseconds.
Seconds for 10-digit values. Milliseconds for 13-digit values.
Read UTC and local time.
Press To Unix time to get the epoch for that moment.
Fills the current time.
Math
Date = Unix seconds × 1000 milliseconds, interpreted from 1970-01-01 UTC.
The browser Date object applies your timezone when it prints local time. UTC stays on the ISO line.
Worked cases
0 seconds after 1970-01-01 00:00:00 UTC
UTC 1970-01-01T00:00:00.000Z.
24 × 60 × 60 = 86400
UTC 1970-01-02T00:00:00.000Z.
1700000000000 ms = 1700000000 s
UTC 2023-11-14T22:13:20.000Z.
Why use this
Questions