Unix Timestamps: Seconds vs Milliseconds
Convert a known timestamp, distinguish seconds from milliseconds, and understand UTC and local date displays.
One instant, two units
Unix timestamps count elapsed time from 1970-01-01T00:00:00Z. JavaScript Date uses milliseconds. Multiply seconds by 1,000 to obtain milliseconds; divide milliseconds by 1,000 to obtain seconds.
For example, 1704067200 seconds and 1704067200000 milliseconds both represent 2024-01-01T00:00:00Z. Select the matching unit in the epoch converter before pasting.
1704067200 seconds
1704067200000 milliseconds
2024-01-01T00:00:00ZWhy does the local date look different?
A timestamp identifies an instant. UTC and local time are different displays of that instant. The example above is 05:30 on January 1 in Asia/Kolkata and 16:00 on December 31 in America/Los_Angeles.
In date-to-timestamp mode, choose local or UTC for the date picker, or enter ISO 8601 text with Z or an explicit offset. Use the time-zone converter to inspect another city.
Troubleshoot unexpected dates
A modern timestamp entered in the wrong unit can produce a date near 1970 or far in the future. Check the upstream field definition rather than relying only on digit count; historical values can be shorter.
Convert the example first, then your own value. If an API requires whole seconds, decide explicitly how to handle fractional milliseconds.
Reference: MDN: JavaScript Date timestamps.