How to use it
- Current timestamp: the top of the tool shows the current Unix time in seconds and milliseconds, updated every second.
- Timestamp → date: paste a number to see it in your local time zone, in UTC, in ISO 8601 format and relative to now.
- Date → timestamp: pick a date and time to get the timestamp in seconds and milliseconds. Choose whether the date you entered is local time or UTC.
What a Unix timestamp is
A Unix timestamp, also called Unix time, POSIX time or epoch time, counts the seconds since 00:00:00 UTC on January 1, 1970. Because it is a single number that does not depend on time zones, it is used everywhere in software: databases, logs, APIs and file systems.
For example, 1700000000 is November 14, 2023 at 22:13:20 UTC.
Automatic unit detection
Different systems store timestamps in seconds, milliseconds, microseconds or nanoseconds. “Auto-detect” chooses the unit from the number of digits before the decimal point:
| Digits | Unit | Typical source |
|---|---|---|
| Up to 11 | Seconds | Unix tools, PHP, Python’s time.time() |
| 12 to 14 | Milliseconds | JavaScript’s Date.now(), Java’s System.currentTimeMillis() |
| 15 to 17 | Microseconds | Some databases and logging systems |
| 18 or more | Nanoseconds | Go’s UnixNano() and similar |
Dates before March 1973 written in milliseconds (or finer units) have fewer digits and can be detected as the wrong unit. Pick the unit manually for those.
Frequently asked questions
Which time zone is “local time”?
The time zone set on your computer or phone. Its name, such as America/New_York, is shown next to the label.
Can I enter negative values?
Yes. Negative timestamps are dates before 1970. For example, -1 is December 31, 1969 at 23:59:59 UTC.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit integer overflow after 03:14:07 UTC on January 19, 2038, and can no longer represent the time correctly. This tool does not have that limit.
Are leap seconds included?
No. By definition, Unix time does not count leap seconds, and neither does this tool.