Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,994 for Hour (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/kubelet/token/token_manager_test.go

    					t.Fatalf("expected token to be refreshed: call count was %d", s.tg.count)
    				}
    			},
    		},
    		{
    			name: "rotate 24 hour token that expires in 40 hours",
    			exp:  40 * time.Hour,
    			f: func(t *testing.T, s *suite) {
    				s.clock.SetTime(s.clock.Now().Add(25 * time.Hour))
    				if _, err := s.mgr.GetServiceAccountToken("a", "b", getTokenRequest()); err != nil {
    					t.Fatalf("unexpected error: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 04 00:16:47 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/plugins/timepicker/bootstrap-timepicker.min.js

    ){this.highlightedUnit=null,this.updateFromElementVal()},clear:function(){this.hour="",this.minute="",this.second="",this.meridian="",this.$element.val("")},decrementHour:function(){if(this.showMeridian)if(1===this.hour)this.hour=12;else{if(12===this.hour)return this.hour--,this.toggleMeridian();if(0===this.hour)return this.hour=11,this.toggleMeridian();this.hour--}else this.hour<=0?this.hour=this.maxHours-1:this.hour--},decrementMinute:function(a){var b;b=a?this.minute-a:this.minute-this.minute...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 04:21:06 UTC 2020
    - 18.2K bytes
    - Viewed (0)
  10. 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)
Back to top