- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,797 for Hour (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/duration/duration_test.go
{d: 8*24*time.Hour - time.Millisecond, want: "7d23h"}, {d: 8 * 24 * time.Hour, want: "8d"}, {d: 8*24*time.Hour + 23*time.Hour, want: "8d"}, {d: 2*365*24*time.Hour - time.Millisecond, want: "729d"}, {d: 2 * 365 * 24 * time.Hour, want: "2y"}, {d: 2*365*24*time.Hour + 23*time.Hour, want: "2y"}, {d: 2*365*24*time.Hour + 23*time.Hour + 59*time.Minute, want: "2y"}, {d: 2*365*24*time.Hour + 24*time.Hour - time.Millisecond, want: "2y"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 17 18:04:52 UTC 2020 - 4.5K bytes - Viewed (0) -
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) -
pkg/controller/certificates/authority/authority_test.go
policy: PermissiveSigningPolicy{TTL: time.Hour, Now: nowFunc}, want: x509.Certificate{ Issuer: caCert.Subject, AuthorityKeyId: caCert.SubjectKeyId, NotBefore: now, NotAfter: now.Add(1 * time.Hour), BasicConstraintsValid: true, }, }, { name: "key usage", policy: PermissiveSigningPolicy{TTL: time.Hour, Usages: []capi.KeyUsage{"signing"}, Now: nowFunc},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 23 19:36:11 UTC 2021 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go
{"d: 5s\n", Duration{5 * time.Second}}, {"d: 2m0s\n", Duration{2 * time.Minute}}, {"d: 1h0m0.003s\n", Duration{time.Hour + 3*time.Millisecond}}, // Units with zero values can optionally be dropped {"d: 2m\n", Duration{2 * time.Minute}}, {"d: 1h0.003s\n", Duration{time.Hour + 3*time.Millisecond}}, } for _, c := range cases { var result DurationHolder
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 07 18:17:32 UTC 2018 - 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) -
internal/s3select/sql/timestampfuncs.go
case timePartMonth: m1 += time.Month(12 * y1) m2 += time.Month(12 * y2) return FromInt(int64(m2 - m1)), nil case timePartDay: return FromInt(int64(duration / (24 * time.Hour))), nil case timePartHour: hours := duration / time.Hour return FromInt(int64(hours)), nil case timePartMinute: minutes := duration / time.Minute return FromInt(int64(minutes)), nil case timePartSecond:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.8K 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)