Skip to content

Unix Timestamp Reference

Unix seconds versus milliseconds, UTC conversions and common mistakes.

By ToolzHive · Updated

Unix time counts seconds from 1970-01-01 00:00:00 UTC under the POSIX convention, which does not count leap seconds as extra elapsed seconds. It has no embedded local time zone.

Download reference CSV

Reference table

Unix Timestamp Reference
Value or expressionMeaningUse
01970-01-01 00:00:00 UTCEpoch
11970-01-01 00:00:01 UTCOne second later
864001970-01-02 00:00:00 UTCOne POSIX day later
17040672002024-01-01 00:00:00 UTCSeconds
1704067200000Same instantMilliseconds
Math.floor(Date.now()/1000)Current whole Unix secondsMilliseconds to seconds
new Date(seconds*1000)JavaScript Date inputSeconds to milliseconds

Copyable example

new Date(1704067200 * 1000).toISOString();
// 2024-01-01T00:00:00.000Z

Check the unit

Many present-day timestamps have 10 digits in seconds and 13 in milliseconds, but digit count is only a clue. Read the API contract.

Calendar dates

A local calendar day can differ from 24 hours at a daylight-saving transition. Use calendar-aware logic for appointments.

Try the related tools

Sources

Related references

Browse all free resources

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help