- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,584 for Hour (0.09 sec)
-
src/time/mono_test.go
} tn := Now() tn1 := tn.Add(1 * Hour) Sleep(100 * Millisecond) d := Until(tn1) if d < 59*Minute { t.Errorf("Until(Now().Add(1*Hour)) = %v, wanted at least 59m", d) } now := Now() if now.After(tn1) { t.Errorf("Now().After(Now().Add(1*Hour)) = true, want false") } if !tn1.After(now) { t.Errorf("Now().Add(1*Hour).After(now) = false, want true") } if tn1.Before(now) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 17:10:49 UTC 2022 - 8.3K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2_test.go
func TestControllerV2SyncCronJob(t *testing.T) { // Check expectations on deadline parameters if shortDead/60/60 >= 1 { t.Errorf("shortDead should be less than one hour") } if mediumDead/60/60 < 1 || mediumDead/60/60 >= 24 { t.Errorf("mediumDead should be between one hour and one day") } if longDead/60/60/24 < 10 { t.Errorf("longDead should be at least ten days") } testCases := map[string]struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0) -
cmd/tier-last-day-stats.go
now := time.Now() l.forwardTo(now) nowIdx := now.Hour() l.Bins[nowIdx] = l.Bins[nowIdx].add(ts) } // forwardTo moves time to t, clearing entries between last update and t. func (l *lastDayTierStats) forwardTo(t time.Time) { if t.IsZero() { t = time.Now() } since := t.Sub(l.UpdatedAt).Hours() // within the hour since l.UpdatedAt if since < 1 { return }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 2.8K bytes - Viewed (0) -
src/time/format_rfc3339.go
b = appendInt(b, year, 4) b = append(b, '-') b = appendInt(b, int(month), 2) b = append(b, '-') b = appendInt(b, day, 2) b = append(b, 'T') // Format time. hour, min, sec := absClock(abs) b = appendInt(b, hour, 2) b = append(b, ':') b = appendInt(b, min, 2) b = append(b, ':') b = appendInt(b, sec, 2) if nanos { std := stdFracSecond(stdFracSecond9, 9, '.')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 18 19:59:26 UTC 2023 - 5.7K bytes - Viewed (0) -
pkg/controller/certificates/signer/signer_test.go
certTTL: time.Hour, expirationSeconds: csr.DurationToExpirationSeconds(30 * time.Minute), want: 30 * time.Minute, }, { name: "cannot request longer duration than TTL", certTTL: time.Hour, expirationSeconds: csr.DurationToExpirationSeconds(3 * time.Hour), want: time.Hour, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 02 21:12:04 UTC 2022 - 15K bytes - Viewed (0) -
src/time/format.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
pkg/queue/delay_test.go
"time" ) func TestPriorityQueue(t *testing.T) { pq := &pq{} t0 := time.Now() t1 := &delayTask{runAt: t0.Add(0)} t2 := &delayTask{runAt: t0.Add(1 * time.Hour)} t3 := &delayTask{runAt: t0.Add(2 * time.Hour)} t4 := &delayTask{runAt: t0.Add(3 * time.Hour)} sorted := []*delayTask{t1, t2, t3, t4} // fill in an unsorted order unsorted := []*delayTask{t4, t2, t3, t1} for _, task := range unsorted { heap.Push(pq, task)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 06:27:31 UTC 2023 - 4.3K bytes - Viewed (0) -
src/time/time_test.go
a2, b2, c2 := t2.Clock() return a1 == a2 && b1 == b2 && c1 == c2 }}, {"Hour", func(t1, t2 Time) bool { return t1.Hour() == t2.Hour() }}, {"Minute", func(t1, t2 Time) bool { return t1.Minute() == t2.Minute() }}, {"Second", func(t1, t2 Time) bool { return t1.Second() == t2.Second() }}, {"Nanosecond", func(t1, t2 Time) bool { return t1.Hour() == t2.Hour() }}, {"YearDay", func(t1, t2 Time) bool { return t1.YearDay() == t2.YearDay() }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
internal/dsync/utils.go
package dsync import ( "math/rand" "time" ) func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration { if unit > time.Hour { // Protect against integer overflow panic("unit cannot exceed one hour") } return func(r *rand.Rand, attempt uint) time.Duration { sleep := min sleep += unit * time.Duration(attempt) if sleep > cap { sleep = cap }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat May 13 15:42:21 UTC 2023 - 1.2K bytes - Viewed (0) -
src/net/conf_test.go
t.Fatal("failed to change resolv config") } setSystemNSS(nssStr(t, "hosts: files myhostname dns"), time.Hour) cnf := &conf{} order, _ := cnf.addrLookupOrder(nil, "192.0.2.1") if order != hostLookupCgo { t.Errorf("addrLookupOrder returned: %v, want cgo", order) } setSystemNSS(nssStr(t, "hosts: files mdns4 dns"), time.Hour)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:46:36 UTC 2024 - 12.3K bytes - Viewed (0)