Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleFixedZone (0.11 sec)

  1. 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)
Back to top