github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2012/simple/time3.go (about)

     1  // +build OMIT
     2  
     3  package main
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  )
     9  
    10  func main() {
    11  	// START OMIT
    12  	t := time.Now()
    13  	fmt.Println(t.In(time.UTC))
    14  	home, _ := time.LoadLocation("Australia/Sydney")
    15  	fmt.Println(t.In(home))
    16  	// END OMIT
    17  }