Change-Id: I8a6c3e225038cbeb315433fabf8835f582836d3e
Reviewed-on: https://go-review.googlesource.com/93657
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
// Output:
// Time: 11:00AM
}
+
+func ExampleFixedZone() {
+ loc := time.FixedZone("UTC-8", -8*60*60)
+ t := time.Date(2009, time.November, 10, 23, 0, 0, 0, loc)
+ fmt.Println("The time is:", t.Format(time.RFC822))
+ // Output: The time is: 10 Nov 09 23:00 UTC-8
+}