Unix Timestamp
Convert between Unix epoch seconds and International Organization for Standardization (ISO)/Request for Comments (RFC) datetime formats (Coordinated Universal Time (UTC)).
Epoch time: reference values
A Unix timestamp counts the seconds since 1970-01-01 00:00:00 UTC. It has no time zone.
0 1970-01-01T00:00:00Z
86400 1970-01-02T00:00:00Z (one day = 86,400 s)
1000000000 2001-09-09T01:46:40Z
1700000000 2023-11-14T22:13:20Z
2147483647 2038-01-19T03:14:07Z (largest signed 32-bit value)
Useful differences: one hour is 3,600 s, one week is 604,800 s, and 30 days are 2,592,000 s. To find how long ago an event was, subtract its timestamp from the current one and divide by these values.
Errors this converter makes visible
- Milliseconds instead of seconds. JavaScript's
Date.now()and Java'sSystem.currentTimeMillis()return milliseconds: 13 digits today, where seconds have 10. A millisecond value read as seconds lands tens of thousands of years in the future; a seconds value read as milliseconds lands in January 1970. Divide by 1,000 or multiply by 1,000. - Local time taken for UTC. The result here is UTC. A log written in local time differs by the UTC offset, for example 1 or 2 hours in central Europe.
- Negative values. Timestamps before 1970 are negative: -86400 is 1969-12-31T00:00:00Z.
- Leap seconds. Unix time ignores them; every day has exactly 86,400 s. Two timestamps therefore never differ from the calendar by more than the leap seconds inserted between them.
Related tools
Monitor Unix Timestamp automatically
Convert between Unix epoch seconds and International Organization for Standardization (ISO)/Request for Comments (RFC) datetime formats (Coordinated Universal Time (UTC)). NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.
Start monitoring free → See all monitoring productsFrequently Asked Questions
What is a Unix timestamp?
A Unix timestamp (epoch time) is the number of seconds elapsed since 00:00:00 Coordinated Universal Time (UTC) on 1 January 1970 (the Unix epoch). It's a universal, timezone-free way to represent a specific moment in time. The current timestamp is always increasing and is the same for all systems worldwide at any given instant.
Why do developers use Unix timestamps instead of date strings?
Timestamps are unambiguous — no timezone confusion, no locale-specific date formats, and trivially sortable as integers. They're ideal for databases, Application Programming Interface (API) responses, log files, and any system that needs to compare or sort times. Date strings like '01/02/03' are ambiguous across locales; a timestamp like 1704067200 always means the same instant.
What is the Year 2038 problem?
Systems that store Unix timestamps as a 32-bit signed integer can only represent dates up to 03:14:07 Coordinated Universal Time (UTC) on 19 January 2038 (231 − 1 = 2,147,483,647 seconds). After that, the value overflows to a large negative number. Modern systems use 64-bit integers, which can represent dates billions of years in the future.
How do I convert a timestamp in JavaScript?
new Date(timestamp * 1000) — JavaScript uses milliseconds, so multiply by 1000. To get the current timestamp: Math.floor(Date.now() / 1000). In Python: import time; time.time() for the current timestamp, and datetime.fromtimestamp(ts, tz=timezone.utc) to convert.