- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleFixedZone (0.11 sec)
-
src/time/example_test.go
text := []byte("Time: ") text = t.AppendFormat(text, time.Kitchen) fmt.Println(string(text)) // 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 01:05:00 UTC 2024 - 22.4K bytes - Viewed (0)