Time example



examples/time/time.go
package main

import (
    "fmt"
    "time"
)

func main() {
    t := time.Now()
    fmt.Printf("%T\n", t)
    fmt.Println(t)
    fmt.Println(t.Unix())
    fmt.Println(t.UnixNano())
}

examples/time/time.out
time.Time
2020-04-24 21:54:38.111505742 +0300 IDT m=+0.000032815
1587754478
1587754478111505742