Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLocationNames (0.12 sec)

  1. src/time/zoneinfo_test.go

    		}
    		s = time.Unix(test.unix+1, 0).In(z).Format(format)
    		if s != test.want2 {
    			t.Errorf("for %s %d got %q want %q", test.zone, test.unix, s, test.want2)
    		}
    	}
    }
    
    func TestLocationNames(t *testing.T) {
    	if time.Local.String() != "Local" {
    		t.Errorf(`invalid Local location name: got %q want "Local"`, time.Local)
    	}
    	if time.UTC.String() != "UTC" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 13 17:06:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top