Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fixedNonce (0.09 sec)

  1. src/time/time_test.go

    	{1582, 10, 4, 277},
    	{1582, 10, 15, 288},
    }
    
    // Check to see if YearDay is location sensitive
    var yearDayLocations = []*Location{
    	FixedZone("UTC-8", -8*60*60),
    	FixedZone("UTC-4", -4*60*60),
    	UTC,
    	FixedZone("UTC+4", 4*60*60),
    	FixedZone("UTC+8", 8*60*60),
    }
    
    func TestYearDay(t *testing.T) {
    	for i, loc := range yearDayLocations {
    		for _, ydt := range yearDayTests {
    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/format.go

    		// - use LoadLocation(loc.name), which will cause a syntax error when
    		// embedded and also would require us to escape the string without
    		// importing fmt or strconv
    		// - try to use FixedZone, which would also require escaping the name
    		// and would represent e.g. "America/Los_Angeles" daylight saving time
    		// shifts inaccurately
    		// - use the pointer format, which is no worse than you'd get with the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  3. src/time/time.go

    	t.ext = sec
    
    	if offset == -1*60 {
    		t.setLoc(&utcLoc)
    	} else if _, localoff, _, _, _ := Local.lookup(t.unixSec()); offset == localoff {
    		t.setLoc(Local)
    	} else {
    		t.setLoc(FixedZone("", offset))
    	}
    
    	return nil
    }
    
    // TODO(rsc): Remove GobEncoder, GobDecoder, MarshalJSON, UnmarshalJSON in Go 2.
    // The same semantics will be provided by the generic MarshalBinary, MarshalText,
    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