Standard library / time

time.UTC

Location for Coordinated Universal Time, offset zero. Use it for deterministic timestamps and cross-system exchange. Expected stdout: '1970-01-01T00:00:00Z\n'.

Formal Syntax & Structure

go syntaxgo
var UTC *Location

Working Example

Example Snippetgo
package main
import (  "fmt"  "time")
func main() { fmt.Println(time.Unix(0, 0).In(time.UTC).Format(time.RFC3339)) }
Go Reference