What is an epoch timestamp?
The Unix epoch is midnight UTC on 1 January 1970. An epoch timestamp counts seconds or milliseconds from that moment. Zero represents that instant. Negative values refer to earlier dates.
If you are checking a log or an API response, compare the UTC result with other records. Use the local time result when you need to know when the event happened on your clock.
How to use this tool
- To read a timestamp, paste the number and select seconds or milliseconds. Read the result in UTC or in your device’s time zone.
- To convert a date, choose Date to timestamp and pick the date and time in UTC. For a date with an offset, choose the ISO input and include the offset, such as +04:00.
- Copy the timestamp in the unit your system expects. Use milliseconds when you need to keep fractions of a second.
Example
A log entry with the timestamp 1700000000000 is 14 November 2023 at 22:13:20 UTC when read as milliseconds. Pick that date and time in UTC to get 1700000000 seconds or 1700000000000 milliseconds.
Common questions
How can I tell if a timestamp is in seconds or milliseconds?
Dates near the present usually have 10 digits in seconds and 13 in milliseconds. Older dates can have fewer digits. If you have the field definition, use the unit it specifies.
Why do UTC and local time show different dates?
They show the same moment on different clocks. For example, 23:30 UTC is already 03:30 the next day in a time zone four hours ahead of UTC.