Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFormatAndParse (0.22 sec)

  1. src/time/format_test.go

    	}
    	if test.hasWD && time.Weekday() != Thursday {
    		t.Errorf("%s: bad weekday: %s not %s", test.name, time.Weekday(), Thursday)
    	}
    }
    
    func TestFormatAndParse(t *testing.T) {
    	const fmt = "Mon MST " + RFC3339 // all fields
    	f := func(sec int64) bool {
    		t1 := Unix(sec/2, 0)
    		if t1.Year() < 1000 || t1.Year() > 9999 || t1.Unix() != sec {
    			// not required to work
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top