Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 430 for tims (0.17 sec)

  1. src/time/time.go

    // that the methods [Time.GobDecode], [Time.UnmarshalBinary], [Time.UnmarshalJSON] and
    // [Time.UnmarshalText] are not concurrency-safe.
    //
    // Time instants can be compared using the [Time.Before], [Time.After], and [Time.Equal] methods.
    // The [Time.Sub] method subtracts two instants, producing a [Duration].
    // The [Time.Add] method adds a Time and a Duration, producing a Time.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    					name: "foo",
    					ttl:  3 * time.Second,
    				},
    			},
    			kmsv1: true,
    		},
    		{
    			desc:   "Install multiple healthz",
    			config: "testdata/valid-configs/kms/multiple-providers.yaml",
    			want: []healthChecker{
    				&kmsPluginProbe{
    					name: "foo",
    					ttl:  3 * time.Second,
    				},
    				&kmsPluginProbe{
    					name: "bar",
    					ttl:  3 * time.Second,
    				},
    			},
    			kmsv1: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	tests := []struct {
    		name                    string
    		defaultRequestWaitLimit time.Duration
    		parent                  func(t time.Time) (context.Context, context.CancelFunc)
    		newReqWaitCtxExpected   bool
    		reqWaitLimitExpected    time.Duration
    	}{
    		{
    			name: "context deadline has exceeded",
    			parent: func(time.Time) (context.Context, context.CancelFunc) {
    				ctx, cancel := context.WithCancel(context.Background())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_client_test.go

    	// Age the session ticket a bit, but not yet expired.
    	serverConfig.Time = func() time.Time { return time.Now().Add(24*time.Hour + time.Minute) }
    	testResumeState("OldSessionTicket", true)
    	ticket = getTicket()
    	// Expire the session ticket, which would force a full handshake.
    	serverConfig.Time = func() time.Time { return time.Now().Add(24*8*time.Hour + time.Minute) }
    	testResumeState("ExpiredSessionTicket", false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  5. src/testing/testing.go

    	const arbitraryTimeout = 2 * time.Second
    	var (
    		start     time.Time
    		nextSleep = 1 * time.Millisecond
    	)
    	for {
    		err := os.RemoveAll(path)
    		if !isWindowsRetryable(err) {
    			return err
    		}
    		if start.IsZero() {
    			start = time.Now()
    		} else if d := time.Since(start) + nextSleep; d >= arbitraryTimeout {
    			return err
    		}
    		time.Sleep(nextSleep)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/test.go

    	testKillTimeout    = 100 * 365 * 24 * time.Hour // backup alarm; defaults to about a century if no timeout is set
    	testWaitDelay      time.Duration                // how long to wait for output to close after a test binary exits; zero means unlimited
    	testCacheExpire    time.Time                    // ignore cached test results before this time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  7. src/time/format.go

    //
    // The remainder of this comment describes the handling of time zones.
    //
    // In the absence of a time zone indicator, Parse returns a time in UTC.
    //
    // When parsing a time with a zone offset like -0700, if the offset corresponds
    // to a time zone used by the current location ([Local]), then Parse uses that
    // location and zone in the returned time. Otherwise it records the time as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  8. pkg/kubelet/pod_workers_test.go

    		if pod.Labels == nil {
    			pod.Labels = make(map[string]string)
    		}
    		pod.Labels[label] = value
    		return pod
    	}
    	withDeletionTimestamp := func(pod *v1.Pod, ts time.Time, gracePeriod *int64) *v1.Pod {
    		pod.DeletionTimestamp = &metav1.Time{Time: ts}
    		pod.DeletionGracePeriodSeconds = gracePeriod
    		return pod
    	}
    	intp := func(i int64) *int64 {
    		return &i
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  9. pkg/controller/cronjob/cronjob_controllerv2_test.go

    	T1, err := time.Parse(time.RFC3339, "2016-05-19T08:59:00Z")
    	if err != nil {
    		panic("test setup error")
    	}
    	return T1
    }
    
    func justAfterTheHour() *time.Time {
    	T1, err := time.Parse(time.RFC3339, "2016-05-19T10:01:00Z")
    	if err != nil {
    		panic("test setup error")
    	}
    	return &T1
    }
    
    func justAfterTheHourInZone(tz string) time.Time {
    	location, err := time.LoadLocation(tz)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		{think: 0, pad: time.Second, finalSeats: 2, conc: 2, nClients: 2, exp: flts(0.25, 0.25)},
    		{think: time.Second, pad: time.Second / 2, finalSeats: 1, conc: 1, nClients: 1},
    		{think: time.Second, pad: time.Second / 2, finalSeats: 1, conc: 2, nClients: 1},
    		{think: time.Second, pad: time.Second / 2, finalSeats: 2, conc: 2, nClients: 1},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
Back to top