Standard library / time
time.Time
Instant with location and optional monotonic reading. Zero is year 1 midnight UTC. Prefer Equal over == for instant equality. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type Time struct { /* unexported fields */ }Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { var t time.Time; fmt.Println(t.IsZero()) }