- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,237 for Hour (0.04 sec)
-
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) -
pkg/controller/cronjob/utils_test.go
} } { // Case 6: now is way way ahead of last start time, and there is no deadline. cj.ObjectMeta.CreationTimestamp = metav1.Time{Time: T1.Add(-2 * time.Hour)} cj.Status.LastScheduleTime = &metav1.Time{Time: T1.Add(-1 * time.Hour)} now := T2.Add(10 * 24 * time.Hour) schedule, _ := nextScheduleTime(logger, &cj, now, ParseSchedule(cj.Spec.Schedule), recorder) if schedule == nil { t.Errorf("expected more than 0 missed times")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 22.8K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle_test.go
objectName: "foodir/fooobject",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 55.1K 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) -
pkg/registry/certificates/certificates/storage/metrics_test.go
Status: certificates.CertificateSigningRequestStatus{ Certificate: createCert(t, time.Hour, caPrivateKey, caCert), }, }, old: &certificates.CertificateSigningRequest{ Spec: certificates.CertificateSigningRequestSpec{ SignerName: "kubernetes.io/educate-dolphins", ExpirationSeconds: csr.DurationToExpirationSeconds(time.Hour), }, }, options: &metav1.UpdateOptions{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 13.7K 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/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.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) -
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)