Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,608 for Time (0.05 sec)

  1. src/runtime/time.go

    	return true
    }
    
    // A timeTimer is a runtime-allocated time.Timer or time.Ticker
    // with the additional runtime state following it.
    // The runtime state is inaccessible to package time.
    type timeTimer struct {
    	c    unsafe.Pointer // <-chan time.Time
    	init bool
    	timer
    }
    
    // newTimer allocates and returns a new time.Timer or time.Ticker (same layout)
    // with the given parameters.
    //
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-03-29 14:36
    - 37.5K bytes
    - Viewed (0)
  2. src/time/zoneinfo_abbrs_windows.go

    	"W. Central Africa Standard Time": {"WAT", "WAT"},     // Africa/Lagos
    	"E. Africa Standard Time":         {"EAT", "EAT"},     // Africa/Nairobi
    	"Sao Tome Standard Time":          {"GMT", "GMT"},     // Africa/Sao_Tome
    	"Libya Standard Time":             {"EET", "EET"},     // Africa/Tripoli
    	"Namibia Standard Time":           {"CAT", "CAT"},     // Africa/Windhoek
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-05-12 20:01
    - 10.5K bytes
    - Viewed (0)
  3. pkg/controller/cronjob/utils_test.go

    		}
    	}
    	{
    		// Case 3: known LastScheduleTime, no start needed.
    		// Creation time is before T1.
    		cj.ObjectMeta.CreationTimestamp = metav1.Time{Time: T1.Add(-10 * time.Minute)}
    		// Status shows a start at the expected time.
    		cj.Status.LastScheduleTime = &metav1.Time{Time: T1}
    		// Current time is after T1
    		now := T1.Add(2 * time.Minute)
    		schedule, _ := nextScheduleTime(logger, &cj, now, ParseSchedule(cj.Spec.Schedule), recorder)
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-09 03:34
    - 22.8K bytes
    - Viewed (0)
  4. src/time/zoneinfo_test.go

    		{"X", time.Rule{}, "", false},
    		{"J10", time.Rule{Kind: time.RuleJulian, Day: 10, Time: 2 * 60 * 60}, "", true},
    		{"20", time.Rule{Kind: time.RuleDOY, Day: 20, Time: 2 * 60 * 60}, "", true},
    		{"M1.2.3", time.Rule{Kind: time.RuleMonthWeekDay, Mon: 1, Week: 2, Day: 3, Time: 2 * 60 * 60}, "", true},
    		{"30/03:00:00", time.Rule{Kind: time.RuleDOY, Day: 30, Time: 3 * 60 * 60}, "", true},
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-03-13 17:06
    - 9.9K bytes
    - Viewed (0)
  5. pkg/controller/job/backoff_utils_test.go

    		},
    		"one failure; current time == 1 second + failure time": {
    			backoffRecord: backoffRecord{
    				lastFailureTime:          &defaultTestTime.Time,
    				failuresAfterLastSuccess: 1,
    			},
    			currentTime:    defaultTestTime.Time.Add(time.Second),
    			defaultBackoff: 5 * time.Second,
    			maxBackoff:     700 * time.Second,
    			wantDuration:   4 * time.Second,
    		},
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-06-06 07:46
    - 16.7K bytes
    - Viewed (0)
  6. src/time/example_test.go

    	// time.Date(2009, time.December, 10, 23, 1, 0, 0, time.UTC)
    	// time.Date(2013, time.February, 3, 19, 54, 0, 0, time.UTC)
    }
    
    func ExampleParse() {
    	// See the example for Time.Format for a thorough description of how
    	// to define the layout string to parse a time.Time value; Parse and
    	// Format use the same model to describe their input and output.
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-02-13 01:05
    - 22.4K bytes
    - Viewed (0)
  7. pkg/util/async/bounded_frequency_runner_test.go

    type timerUpdate struct {
    	active bool
    	next   time.Duration // iff active == true
    }
    
    // Fake time.
    type fakeTimer struct {
    	c chan time.Time
    
    	lock    sync.Mutex
    	now     time.Time
    	timeout time.Time
    	active  bool
    
    	updated chan timerUpdate
    }
    
    func newFakeTimer() *fakeTimer {
    	ft := &fakeTimer{
    		now:     time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC),
    		c:       make(chan time.Time),
    Registered: 2024-06-15 01:39
    - Last Modified: 2022-11-15 09:36
    - 12.5K bytes
    - Viewed (0)
  8. src/net/mail/message_test.go

    			time.Date(1997, 11, 21, 9, 55, 6, 0, time.FixedZone("", -6*60*60)),
    			false,
    		},
    		// Invalid month : OCT iso Oct
    		{
    			"Fri, 21 OCT 1997 09:55:06 CST",
    			time.Time{},
    			false,
    		},
    		// A too short time zone.
    		{
    			"Fri, 21 Nov 1997 09:55:06 -060",
    			time.Date(1997, 11, 21, 9, 55, 6, 0, time.FixedZone("", -6*60*60)),
    			false,
    		},
    		// A too short obsolete time zone.
    		{
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-03-19 11:31
    - 30.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfields_test.go

    				{Manager: "a", Operation: metav1.ManagedFieldsOperationUpdate, Time: &metav1.Time{Time: time.Date(2000, time.January, 0, 0, 0, 0, 2, time.UTC)}},
    				{Manager: "b", Operation: metav1.ManagedFieldsOperationUpdate, Time: &metav1.Time{Time: time.Date(2000, time.January, 0, 0, 0, 0, 3, time.UTC)}},
    			},
    			expected: []metav1.ManagedFieldsEntry{
    Registered: 2024-06-15 01:39
    - Last Modified: 2023-03-08 21:44
    - 16.9K bytes
    - Viewed (0)
  10. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    			activePods:                      []*v1.Pod{normalPodNoGracePeriod, criticalPodNoGracePeriod},
    			shutdownGracePeriodRequested:    time.Duration(5 * time.Second),
    			shutdownGracePeriodCriticalPods: time.Duration(5 * time.Second),
    			systemInhibitDelay:              time.Duration(0 * time.Second),
    			overrideSystemInhibitDelay:      time.Duration(0 * time.Second),
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-04-24 18:25
    - 29.8K bytes
    - Viewed (0)
Back to top