February 2018
Intermediate to advanced
340 pages
9h 43m
English
package main import ( "fmt" "time" ) func main() { eur, err := time.LoadLocation("Europe/Vienna") if err != nil { panic(err) } t := time.Date(2000, 1, 1, 0, 0, 0, 0, eur) fmt.Printf("Original Time: %v\n", t) phx, err := time.LoadLocation("America/Phoenix") if err != nil { panic(err) } t2 := t.In(phx) fmt.Printf("Converted Time: %v\n", t2) }

Read now
Unlock full access