How to use the converter
- Timestamp → date: paste a Unix timestamp. It's converted to UTC, your local time, ISO 8601, RFC 2822 and a relative time (“in 3 months”). You can also paste a date string such as
2026-03-01T09:30:00Zto get its timestamp. - Date → timestamp: pick a date, a time and a time zone to get the Unix timestamp in seconds and milliseconds. Daylight saving time is handled for every zone.
- The banner at the top shows the current Unix time, updated live — click to copy it in seconds or milliseconds.
Timestamp units at a glance
| Unit | Digits today | Example | Used by |
|---|---|---|---|
| Seconds | 10 | 1767225600 | Unix/Linux, PHP, Python time.time(), MySQL, PostgreSQL, JWT exp |
| Milliseconds | 13 | 1767225600000 | JavaScript Date.now(), Java, Elasticsearch, many JSON APIs |
| Microseconds | 16 | 1767225600000000 | Python datetime internals, PostgreSQL, Google APIs |
| Nanoseconds | 19 | 1767225600000000000 | Go UnixNano(), InfluxDB, Prometheus internals |
All four examples above are the same moment: midnight UTC on 1 January 2026.
Notable timestamps
| Timestamp | Date (UTC) | Why it matters |
|---|---|---|
0 | 1 Jan 1970, 00:00:00 | The Unix epoch |
1000000000 | 9 Sep 2001, 01:46:40 | The first billion seconds |
1767225600 | 1 Jan 2026, 00:00:00 | Start of 2026 |
2000000000 | 18 May 2033, 03:33:20 | Two billion seconds |
2147483647 | 19 Jan 2038, 03:14:07 | Largest signed 32-bit value — the “Year 2038 problem” |
Why developers use Unix time
- No time zone ambiguity. “09:00 on 31 March” means different instants in different places, and some local times happen twice when clocks go back. A timestamp means exactly one instant.
- Easy arithmetic. Durations are simple subtraction, and sorting is numeric. One minute is 60, one hour 3,600 and one day 86,400 seconds.
- Compact and universal. Every language, database and operating system understands it.
The trade-off is readability — which is what this converter is for. As a rule, store and transmit timestamps (or ISO 8601 strings in UTC), and convert to local time only when showing a date to a person.
Leap seconds and precision
Unix time pretends every day has exactly 86,400 seconds, so it ignores the 27 leap seconds added since 1972: during a leap second, the timestamp repeats or is smeared. For almost every application this doesn't matter, but scientific and financial systems that need exact elapsed time use TAI or GPS time instead.
Common pitfalls
- Mixing seconds and milliseconds. A seconds value treated as milliseconds lands in January 1970; milliseconds treated as seconds land tens of thousands of years in the future.
- Local-time parsing. In JavaScript,
new Date('2026-03-01')is UTC midnight, butnew Date('2026-03-01T00:00')is local midnight. Always include aZor an offset in date strings you store. - 32-bit storage. Database columns or C code using a 32-bit
intfor timestamps will break in 2038 — use 64-bit integers.
Frequently asked questions
What is a Unix timestamp?
The number of seconds that have passed since the Unix epoch — 00:00:00 UTC on 1 January 1970 — not counting leap seconds. It's the same number everywhere in the world at a given moment, which makes it ideal for storing and comparing times in software.
Is my timestamp in seconds or milliseconds?
Count the digits. Current timestamps in seconds have 10 digits (e.g. 1767225600); in milliseconds they have 13 (1767225600000). JavaScript's Date.now() and Java's System.currentTimeMillis() use milliseconds; most other languages and databases use seconds. The converter detects this automatically.
Do Unix timestamps depend on time zones?
No. A timestamp identifies one instant, independent of time zone. Time zones only matter when you display it as a calendar date and time — which is why the converter shows both UTC and your local time.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit integer can only count up to 2,147,483,647 seconds, which is reached at 03:14:07 UTC on 19 January 2038. One second later the value overflows to a negative number — a date in 1901. Modern systems use 64-bit timestamps, which won't overflow for billions of years.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). Bash: date +%s. Open “Get the current timestamp in your language” under the converter for more.
Can a Unix timestamp be negative?
Yes — negative values are moments before 1 January 1970. For example, −86400 is 31 December 1969 at 00:00 UTC.


