How to use it
- Choose Timestamp to date and select seconds or milliseconds. Paste the Unix timestamp.
- For the other direction, choose Date to timestamp. Use YYYY-MM-DD for midnight UTC, or enter a date and time with Z or a numeric UTC offset.
- Convert and copy the ISO UTC date, seconds or milliseconds. Use current time for an instant snapshot.
Questions and answers
What does a Unix timestamp measure?
Unix time counts seconds from January 1, 1970, at 00:00:00 UTC. Decimal seconds represent fractions of a second. A millisecond timestamp counts thousandths of a second from the same starting point.
When does the converter use my device time zone?
Only for the Device time result. An entered date and time without an offset is treated as UTC. Add a numeric offset such as -05:00 if your input is five hours behind UTC.
What happens to leap seconds?
Unix time treats a normal calendar day as 86,400 seconds and does not assign a separate timestamp to 23:59:60. This converter accepts seconds from 00 to 59.
Common questions and fixes
How can I tell if a Unix timestamp is in seconds or milliseconds?
For dates near the present, Unix seconds usually have 10 digits and milliseconds usually have 13. Try both units if you have an expected date, then confirm the unit from the system that produced the value. Near 1970, counting digits alone cannot identify it.
Step by step
- Read the field name or API documentation for the timestamp unit.
- In Timestamp to date, choose that unit and paste the original digits without grouping marks.
- Compare the ISO date with the period you expected. For example, both first rows below represent the start of 2024.
How do I convert a date and time with an offset to a Unix timestamp?
Enter the clock time followed by its numeric offset. For example, 2024-01-01T00:00:00-05:00 is 05:00 UTC, so it gives 1704085200 seconds. Use the offset that applied at the recorded time, since some regions change offsets during the year.
Step by step
- Find the UTC offset listed on the original record or for that location at that date and time.
- Choose Date to timestamp. Enter the date and clock time followed by that offset.
- Convert and compare the UTC date with the table. Copy seconds or milliseconds as the receiving system requires.
What does a negative Unix timestamp mean?
A negative timestamp is an instant before January 1, 1970 at 00:00:00 UTC. A value of −1.5 seconds means exactly one and a half seconds before midnight, which is 1969-12-31 at 23:59:58.500 UTC.
Step by step
- Choose Timestamp to date and set the unit used by the source.
- Keep the minus sign and any fraction when you paste the value.
- Check the ISO date. To confirm the instant, paste that ISO date into the reverse converter and compare both results.