DevTools Hub

Timestamp Converter

Convert between Unix timestamps, ISO dates, and human-readable formats

Current Time
The current time in different formats
Convert Timestamp
Convert between different timestamp formats

Conversion Results

Guide

About Unix Timestamps

What is a Unix timestamp?

A Unix timestamp (or epoch time) is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. Because it is a single number with no time zone attached, it is the most common way computers store and exchange moments in time: in databases, log files, JWT tokens and HTTP APIs.

Seconds or milliseconds?

Unix tools, PHP, Python's time.time() and most APIs use seconds(10 digits today, e.g. 1793836800). JavaScript's Date.now() and Java use milliseconds (13 digits, e.g. 1793836800000). If a converted date lands in 1970 or tens of thousands of years in the future, you have mixed the two up.

Getting the current timestamp

  • JavaScript: Math.floor(Date.now() / 1000)
  • Python: int(time.time())
  • Bash: date +%s
  • PostgreSQL: extract(epoch from now())
  • MySQL: UNIX_TIMESTAMP()

ISO 8601

ISO 8601 is the international standard text format for dates, such as2026-11-05T14:30:00Z. The trailing Z means UTC; an offset like+05:30 indicates local time. It sorts correctly as plain text, which makes it ideal for file names and logs.

Frequently asked questions

What is the Year 2038 problem?

Systems that store Unix time in a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038 and wrap to 1901. Modern operating systems and languages use 64-bit timestamps, which will not overflow for billions of years.

Do Unix timestamps include time zones?

No. A timestamp always represents an instant in UTC. Time zones only matter when you format it for display, which is what the time zone selector in this tool does.

Can timestamps be negative?

Yes. Negative values represent dates before 1 January 1970; for example -86400 is 31 December 1969.