Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for thursday (0.19 sec)

  1. src/time/format_test.go

    	name, offset := time.Zone()
    	if test.hasTZ && offset != -28800 {
    		t.Errorf("%s: bad tz offset: %s %d not %d", test.name, name, offset, -28800)
    	}
    	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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. src/time/time.go

    	// the offset to Thursday
    	abs := t.abs()
    	d := Thursday - absWeekday(abs)
    	// handle Sunday
    	if d == 4 {
    		d = -3
    	}
    	// find the Thursday of the calendar week
    	abs += uint64(d) * secondsPerDay
    	year, _, _, yday := absDate(abs, false)
    	return year, yday/7 + 1
    }
    
    // Clock returns the hour, minute, and second within the day specified by t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. src/time/time_test.go

    		t.Errorf("zero month = %q; want %q", got, want)
    	}
    }
    
    // Issue 24692: Out of range weekday panics
    func TestWeekdayString(t *testing.T) {
    	if got, want := Tuesday.String(), "Tuesday"; got != want {
    		t.Errorf("Tuesday weekday = %q; want %q", got, want)
    	}
    	if got, want := Weekday(14).String(), "%!Weekday(14)"; got != want {
    		t.Errorf("14th weekday = %q; want %q", got, want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/time/format.go

    					return layout[0:i], std, layout[j:]
    				}
    			}
    		}
    	}
    	return layout, 0, ""
    }
    
    var longDayNames = []string{
    	"Sunday",
    	"Monday",
    	"Tuesday",
    	"Wednesday",
    	"Thursday",
    	"Friday",
    	"Saturday",
    }
    
    var shortDayNames = []string{
    	"Sun",
    	"Mon",
    	"Tue",
    	"Wed",
    	"Thu",
    	"Fri",
    	"Sat",
    }
    
    var shortMonthNames = []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    Together with the <a href="#Iota"><code>iota</code> constant generator</a>
    this mechanism permits light-weight declaration of sequential values:
    </p>
    
    <pre>
    const (
    	Sunday = iota
    	Monday
    	Tuesday
    	Wednesday
    	Thursday
    	Friday
    	Partyday
    	numberOfDays  // this constant is not exported
    )
    </pre>
    
    
    <h3 id="Iota">Iota</h3>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  6. pkg/controller/cronjob/utils.go

    		mostRecentTime = t
    	}
    
    	// An object might miss several starts. For example, if
    	// controller gets wedged on friday at 5:01pm when everyone has
    	// gone home, and someone comes in on tuesday AM and discovers
    	// the problem and restarts the controller, then all the hourly
    	// jobs, more than 80 of them for one hourly cronJob, should
    	// all start running with no further intervention (if the cronJob
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. doc/go_spec.html

    Together with the <a href="#Iota"><code>iota</code> constant generator</a>
    this mechanism permits light-weight declaration of sequential values:
    </p>
    
    <pre>
    const (
    	Sunday = iota
    	Monday
    	Tuesday
    	Wednesday
    	Thursday
    	Friday
    	Partyday
    	numberOfDays  // this constant is not exported
    )
    </pre>
    
    
    <h3 id="Iota">Iota</h3>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top