Timestamp Converter

Convert timestamp to date

Timestamp to date

Current Unix epoch: 1790700001
Units: auto · s · ms · μs · ns
Local2026-09-29 16:40:01
UTCTue, 29 Sep 2026 16:40:01 GMT
Seconds1790700001
Millis1790700001000
Micros1790700001000000
Nanos1790700001000000000

Convert date to timestamp

Pick date:

Seconds1790700001
Millis1790700001000
Micros1790700001000000
Nanos1790700001000000000

What is Unix timestamp?

A Unix timestamp (also called Unix time or POSIX time) is the number of seconds since 1970-01-01 00:00:00 UTC.

It is a convenient way to store and compare time values across systems. Most systems treat it as a continuous count of seconds and do not count leap seconds.

Some 32-bit systems overflow in 2038 (the Year 2038 problem).

Code examples

Get current epoch time and convert an epoch timestamp to a human-readable date (replace 1800000000.

JavaScript
// now (seconds)
Math.floor(Date.now() / 1000)

// epoch -> date
new Date(1800000000 * 1000).toISOString()
Python
import time

# now (seconds)
int(time.time())

# epoch -> date (local)
time.ctime(1800000000)
Go
package main

import (
  "fmt"
  "time"
)

func main() {
  fmt.Println(time.Now().Unix())
  fmt.Println(time.Unix(1800000000, 0).UTC())
}
SQL (PostgreSQL)
-- now (seconds)
SELECT EXTRACT(EPOCH FROM now());

-- epoch -> timestamp
SELECT TO_TIMESTAMP(1800000000);
Unix/Linux shell
date +%s
date -d @1800000000
macOS
date +%s
date -j -r 1800000000