Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Free tools / Epoch converter
Free tool · runs in your browser

Epoch converter Unix timestamp ⇄ date

Convert Unix timestamps to readable dates and back. Detects seconds vs milliseconds automatically.

–current epoch (seconds)
–milliseconds

What a Unix timestamp is

The number of seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. It is the same everywhere in the world at the same moment; only the displayed local time differs.

Seconds, milliseconds or more?

The converter decides by length: about 10 digits for current dates in seconds (Unix, Python time.time(), most APIs), 13 digits for milliseconds (JavaScript Date.now(), Java System.currentTimeMillis()), 16 for microseconds and 19 for nanoseconds (Go time.Now().UnixNano()).

Get the current timestamp in code

Shelldate +%s
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
Gotime.Now().Unix()
PostgreSQLextract(epoch from now())
PowerShell[DateTimeOffset]::UtcNow.ToUnixTimeSeconds()

The year 2038 problem

Systems that store the timestamp as a signed 32-bit integer overflow after 2,147,483,647 seconds: 03:14:07 UTC on 19 January 2038. 64-bit timestamps don't have this limit.

Sources