Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ZoneBounds (0.11 sec)

  1. src/time/time_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// The ZoneBounds of a UTC location would just return two zero Time.
    	for _, test := range utctests {
    		sec := test.seconds
    		golden := &test.golden
    		tm := Unix(sec, 0).UTC()
    		start, end := tm.ZoneBounds()
    		if !(start.IsZero() && end.IsZero()) {
    			t.Errorf("ZoneBounds of %+v expects two zero Time, got:\n  start=%v\n  end=%v", *golden, start, end)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. src/time/time.go

    	return
    }
    
    // ZoneBounds returns the bounds of the time zone in effect at time t.
    // The zone begins at start and the next zone begins at end.
    // If the zone begins at the beginning of time, start will be returned as a zero Time.
    // If the zone goes on forever, end will be returned as a zero Time.
    // The Location of the returned times will be the same as t.
    func (t Time) ZoneBounds() (start, end Time) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
Back to top