Unix Timestamp Converter
Convert Unix timestamps to human-readable dates. Get code snippets for Go, Python, JavaScript, PHP, Java and Rust.
Current Unix Timestamp
1780823166
2026-06-07T09:06:06.000Z
ISO 8601 / RFC 33392026-06-07T09:06:06.000Z
UTC (RFC 2822)Sun, 07 Jun 2026 09:06:06 GMT
Local time6/7/2026, 9:06:06 AM
Milliseconds1780823166000
Relativein 0s
Code Snippet
What is a Unix Timestamp?
A Unix timestamp (also called Unix time, POSIX time, or epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC — the Unix epoch. It is a language-agnostic, timezone-agnostic way to represent a specific moment in time as a single integer.
APIs and databases often store timestamps as Unix integers. Millisecond precision timestamps (13 digits) are also common in JavaScript APIs — divide by 1000 to get seconds.
Format Comparison
| Format | Example | Use case |
|---|---|---|
| Unix seconds | 1748217600 | APIs, databases, Go, Python, Rust |
| Unix milliseconds | 1748217600000 | JavaScript Date, Java Instant.toEpochMilli() |
| ISO 8601 | 2025-05-26T00:00:00Z | JSON APIs, HTTP headers, logs |
| RFC 3339 | 2025-05-26T00:00:00Z | Go time.RFC3339, gRPC Timestamps |
| RFC 2822 (UTC) | Mon, 26 May 2025 00:00:00 +0000 | Email headers, HTTP Last-Modified |
Go Timestamp Patterns
go
import "time"
// Current timestamp
now := time.Now().Unix() // seconds
nowMs := time.Now().UnixMilli() // milliseconds (Go 1.17+)
// Parse a timestamp
t := time.Unix(1748217600, 0).UTC()
fmt.Println(t.Format(time.RFC3339)) // 2025-05-26T00:00:00Z
// Parse ISO 8601 string
t2, _ := time.Parse(time.RFC3339, "2025-05-26T00:00:00Z")
fmt.Println(t2.Unix()) // 1748217600
// Format options
t.Format(time.RFC3339) // 2025-05-26T00:00:00Z
t.Format("2006-01-02") // 2025-05-26 (Go's reference time)
t.Format("02 Jan 2006 15:04") // 26 May 2025 00:00