EpochTools
Backend

Unix Timestamps in Go

Go time package with second, millisecond, and nanosecond precision.

Complete Go Recipe

package main

import (
	"fmt"
	"time"
)

func main() {
	// 1. Current Unix timestamps
	nowSec := time.Now().Unix()
	nowMilli := time.Now().UnixMilli()
	nowNano := time.Now().UnixNano()

	// 2. Convert timestamp (1710000000) to time.Time
	t := time.Unix(1710000000, 0).UTC()
	fmt.Println(t.Format(time.RFC3339)) // 2026-10-02T...Z

	// 3. Convert time.Time back to Unix
	fmt.Println(t.Unix())
}

Test With Live Converter

Epoch → Human Date

Paste any Unix timestamp. The unit is auto-detected from its magnitude.

Auto-detects seconds, milliseconds, microseconds, or nanoseconds. Example: 1735689600

Detected:Auto (Seconds)

UTC ISO 8601

–

Local — auto

–

RFC 2822 / GMT

–

Seconds Value

–

Relative Time

–