- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,367 for Hour (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go
} func TestAddBringsToFront(t *testing.T) { c := NewLRUExpireCache(4) c.Add("elem1", "1", 10*time.Hour) c.Add("elem2", "2", 10*time.Hour) c.Add("elem3", "3", 10*time.Hour) c.Add("elem4", "4", 10*time.Hour) c.Add("elem1", "1-new", 10*time.Hour) c.Add("elem5", "5", 10*time.Hour) assertKeys(t, c.Keys(), []interface{}{"elem3", "elem4", "elem1", "elem5"}) expectNotEntry(t, c, "elem2")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 4.3K bytes - Viewed (0) -
cmd/update-notifier_test.go
{1 * time.Hour, "my_download_url", "1 hour before the latest release"}, {61 * time.Minute, "my_download_url", "1 hour before the latest release"}, {122 * time.Minute, "my_download_url", "2 hours before the latest release"}, {24 * time.Hour, "my_download_url", "1 day before the latest release"}, {25 * time.Hour, "my_download_url", "1 day before the latest release"},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jul 31 15:36:19 UTC 2023 - 4.1K bytes - Viewed (0) -
src/crypto/x509/platform_test.go
NotBefore: now.Add(-time.Hour), NotAfter: now.Add(time.Hour), ExtKeyUsage: []ExtKeyUsage{ExtKeyUsageServerAuth}, }, }, { name: "valid (with name)", cert: &Certificate{ SerialNumber: big.NewInt(1), DNSNames: []string{"valid.testing.golang.invalid"}, NotBefore: now.Add(-time.Hour), NotAfter: now.Add(time.Hour),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 17:18:29 UTC 2024 - 7.2K bytes - Viewed (0) -
src/runtime/race/testdata/time_test.go
v = 2 time.AfterFunc(1, f) <-c v = 3 } func TestNoRaceAfterFuncReset(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } t := time.AfterFunc(time.Hour, f) t.Stop() v = 2 t.Reset(1) <-c v = 3 } func TestNoRaceTimer(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } v = 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:34:15 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/TimeFormattingTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 4.8K bytes - Viewed (0) -
pkg/proxy/apis/config/v1alpha1/defaults_test.go
MaxPerCore: &ctMaxPerCore, Min: &ctMin, TCPEstablishedTimeout: &metav1.Duration{Duration: 24 * time.Hour}, TCPCloseWaitTimeout: &metav1.Duration{Duration: 1 * time.Hour}, }, ConfigSyncPeriod: metav1.Duration{Duration: 15 * time.Minute}, Logging: logsapi.LoggingConfiguration{ Format: "text",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:33:53 UTC 2023 - 5.1K 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) -
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/crypto/x509/hybrid_pool_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:48:11 UTC 2024 - 3.7K bytes - Viewed (0) -
src/time/zoneinfo_windows.go
// d.DayOfWeek is appropriate weekday (Sunday=0 to Saturday=6) // d.Day is week within the month (1 to 5, where 5 is last week of the month) // d.Hour, d.Minute and d.Second are absolute time day := 1 t := Date(year, Month(d.Month), day, int(d.Hour), int(d.Minute), int(d.Second), 0, UTC) i := int(d.DayOfWeek) - int(t.Weekday()) if i < 0 { i += 7 } day += i if week := int(d.Day) - 1; week < 4 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 07:20:34 UTC 2023 - 6.6K bytes - Viewed (0)