Convert between Unix timestamps and human-readable dates.
Current Unix Timestamp
Unix time (also known as POSIX time or epoch time) is a system for tracking time as a running count of seconds since the Unix epoch: January 1, 1970 at 00:00:00 UTC. It was chosen as the standard reference point for the Unix operating system, and has since been adopted by virtually every programming language and operating system.
Unix timestamps are timezone-agnostic. The value 1700000000 means the same instant everywhere in the world. This makes them ideal for storing and comparing times across distributed systems, databases, and APIs without worrying about timezone conversion issues.
Epoch (zero point):
January 1, 1970, 00:00:00 UTC = 0
// Current timestamp (seconds)
const now = Math.floor(Date.now() / 1000);
// Timestamp to Date
const date = new Date(1700000000 * 1000);
console.log(date.toISOString());
// "2023-11-14T22:13:20.000Z"
// Date to timestamp
const ts = Math.floor(new Date('2024-01-01').getTime() / 1000);
// 1704067200
import time
from datetime import datetime
# Current timestamp
now = int(time.time())
# Timestamp to datetime
dt = datetime.fromtimestamp(1700000000)
print(dt) # 2023-11-14 22:13:20
# Datetime to timestamp
ts = int(datetime(2024, 1, 1).timestamp())
# 1704067200
package main
import (
"fmt"
"time"
)
func main() {
// Current timestamp
now := time.Now().Unix()
fmt.Println(now)
// Timestamp to time
t := time.Unix(1700000000, 0)
fmt.Println(t.Format(time.RFC3339))
// "2023-11-14T22:13:20Z"
// Time to timestamp
t2 := time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)
fmt.Println(t2.Unix()) // 1704067200
}
# Current timestamp
date +%s
# Timestamp to date (Linux)
date -d @1700000000
# Timestamp to date (macOS)
date -r 1700000000
# Date to timestamp (Linux)
date -d "2024-01-01" +%s
Date.now() returns milliseconds since epoch for higher precision. This is common in browser environments where millisecond timing matters for animations, performance measurements, and event handling. Most server-side APIs expect seconds, so you typically divide by 1000: Math.floor(Date.now() / 1000). Our converter automatically detects millisecond timestamps (13+ digits) and converts them.
UptimeSignal monitors your endpoints every minute and tracks response times over time. Get alerted the moment your API slows down or goes offline.
Start monitoring free →25 monitors free. No credit card required.