What is a Unix timestamp?
A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. For example, 1760000000 is 9 October 2025 at 08:53:20 UTC.
Because it is a single number with no time zone, a timestamp is easy to store, compare and sort, which is why databases, APIs, log files and JWTs use it. Converting it into a date and time is only needed when a person has to read it.
How to convert a Unix timestamp
- Paste the timestamp under Timestamp to date. The unit is detected from the number of digits.
- Choose a time zone under Show in, or keep your own.
- Read the date in that zone, in UTC as ISO 8601, as an HTTP date, and relative to now. Select Copy beside any value.
- To go the other way, pick a date, time and time zone under Date to timestamp.
Seconds, milliseconds, microseconds and nanoseconds
Different systems count in different units, and mixing them up is the most common timestamp bug:
- Seconds (10 digits today): Unix and Linux, PHP
time(), PostgreSQLextract(epoch from …), JWT claims. - Milliseconds (13 digits): JavaScript
Date.now(), JavaSystem.currentTimeMillis(). - Microseconds (16 digits): Python
time.time_ns() // 1000, many databases’ internal clocks. - Nanoseconds (19 digits): Go
time.Now().UnixNano(), Pythontime.time_ns().
If a converted date lands in 1970, a millisecond value was probably read as seconds, or the other way round if it lands far in the future.
Time zones and daylight saving time
A timestamp is the same everywhere; only its display changes. 1760000000 is 09:53:20 in London (British Summer Time, UTC+1), 14:23:20 in Mumbai (UTC+5:30) and 04:53:20 in New York (Eastern Daylight Time, UTC−4).
Going from a date to a timestamp needs a time zone, and daylight saving time causes two edge cases. When clocks go forward, an hour is skipped: 02:30 on 8 March 2026 never happens in New York. When clocks go back, an hour happens twice: 01:30 on 1 November 2026 occurs once in daylight time and again in standard time. This converter tells you when a time falls into either case.
The year 2038 problem
Older systems store Unix time as a signed 32-bit integer, whose largest value is 2147483647: 19 January 2038 at 03:14:07 UTC. One second later it wraps to a negative number, which reads as December 1901. Systems that use 64-bit integers, now the norm, are not affected. Timestamps before 1970 are simply negative: -86400 is 31 December 1969.
Getting and converting timestamps in code
The current Unix time in seconds, and a timestamp turned into a UTC date, in common languages and tools:
| Language | Current time (seconds) | Timestamp to date |
|---|---|---|
| JavaScript, Node.js | Math.floor(Date.now() / 1000) | new Date(1760000000 * 1000).toISOString() |
| Python | int(time.time()) | datetime.fromtimestamp(1760000000, tz=timezone.utc) |
| Java, Kotlin | Instant.now().getEpochSecond() | Instant.ofEpochSecond(1760000000) |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.FromUnixTimeSeconds(1760000000) |
| Go | time.Now().Unix() | time.Unix(1760000000, 0).UTC() |
| PHP | time() | gmdate('c', 1760000000) |
| Ruby | Time.now.to_i | Time.at(1760000000).utc |
| Rust | SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs() | UNIX_EPOCH + Duration::from_secs(1760000000) |
| Swift | Int(Date().timeIntervalSince1970) | Date(timeIntervalSince1970: 1760000000) |
| PostgreSQL | EXTRACT(EPOCH FROM now())::bigint | to_timestamp(1760000000) |
| MySQL | UNIX_TIMESTAMP() | FROM_UNIXTIME(1760000000) |
| SQLite | unixepoch() | datetime(1760000000, 'unixepoch') |
| Shell (Linux) | date +%s | date -u -d @1760000000 |
| Shell (macOS) | date +%s | date -u -r 1760000000 |
| PowerShell | [DateTimeOffset]::UtcNow.ToUnixTimeSeconds() | [DateTimeOffset]::FromUnixTimeSeconds(1760000000) |
| Excel, Sheets | =(NOW()-DATE(1970,1,1))*86400 (in a UTC sheet) | =A1/86400+DATE(1970,1,1), formatted as a date |
MySQL's FROM_UNIXTIME and PostgreSQL's to_timestamp show the result in the session's time zone; the others above give UTC. For milliseconds, JavaScript's Date.now() and Java's System.currentTimeMillis() return them directly.