- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,797 for Hour (0.19 sec)
-
security/pkg/cmd/constants.go
const ( // DefaultSelfSignedCACertTTL is the default TTL of self-signed CA root certificate. DefaultSelfSignedCACertTTL = 3650 * 24 * time.Hour // DefaultSelfSignedRootCertCheckInterval is the default interval a self-signed // CA checks and rotates its root certificate. DefaultSelfSignedRootCertCheckInterval = 1 * time.Hour // DefaultRootCertGracePeriodPercentile is the default length of root certificate
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jul 07 03:27:36 UTC 2020 - 1.7K bytes - Viewed (0) -
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/certificates/cleaner/cleaner_test.go
LastUpdateTime: metav1.NewTime(time.Now().Add(-2 * time.Hour)), }, { Type: capi.CertificateFailed, LastUpdateTime: metav1.NewTime(time.Now().Add(-2 * time.Hour)), }, }, []string{"delete"}, }, { "no delete pending not passed deadline", metav1.NewTime(time.Now().Add(-5 * time.Hour)), nil, []capi.CertificateSigningRequestCondition{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 07 15:19:45 UTC 2022 - 7.4K 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) -
cmd/bucket-lifecycle_test.go
ondisk: false, }, { // restore completed but expired restoreStatus: completedRestoreObj(time.Now().Add(-time.Hour)), ondisk: false, }, { // restore completed restoreStatus: completedRestoreObj(time.Now().Add(time.Hour)), ondisk: true, }, } for i, tc := range testCases { if actual := tc.restoreStatus.OnDisk(); actual != tc.ondisk {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 31 09:57:57 UTC 2022 - 7K 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) -
pkg/apis/authentication/v1/defaults.go
return RegisterDefaults(scheme) } func SetDefaults_TokenRequestSpec(obj *authenticationv1.TokenRequestSpec) { if obj.ExpirationSeconds == nil { hour := int64(60 * 60) obj.ExpirationSeconds = &hour }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 18:54:11 UTC 2018 - 944 bytes - Viewed (0) -
cmd/metacache_test.go
fileNotFound: false, error: "", started: metaCacheTestsetTimestamp.Add(-7 * 24 * time.Hour), ended: metaCacheTestsetTimestamp.Add(-7 * 24 * time.Hour), lastUpdate: metaCacheTestsetTimestamp.Add(-7 * 24 * time.Hour), lastHandout: metaCacheTestsetTimestamp.Add(-7 * 24 * time.Hour), dataVersion: metacacheStreamVersion, }, } func Test_baseDirFromPrefix(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 08 18:06:45 UTC 2021 - 6.8K 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)