Convert between Unix time and real dates
Computers often store time as a Unix timestamp — the number of seconds since the start of 1970 — because a single number is easy to store, sort, and compare. People can't read it, though. This converter translates a timestamp into a human date and time, and turns a date back into a timestamp, which is exactly what you need when reading logs, database rows, or API responses.
How to use it
- Paste a Unix timestamp to see the date, or pick a date to get its timestamp.
- Check whether your value is in seconds or milliseconds.
- Copy the converted result.
Where it comes up
- Reading the
created_atfield of an API response. - Matching a log entry to a real wall-clock time.
- Setting an expiry time expressed as a timestamp.
Questions people ask
Seconds or milliseconds? Unix time is traditionally seconds, but JavaScript and many APIs use milliseconds — a value with 13 digits is almost certainly milliseconds.
What about time zones? Timestamps are absolute; the human date is shown in your local zone unless stated otherwise.