- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 331 for tims (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
tests/query_test.go
} } var times []time.Time if err := DB.Model(User{}).Where("name like ?", "pluck-user%").Pluck("created_at", ×).Error; err != nil { t.Errorf("got error when pluck time: %v", err) } for idx, tv := range times { AssertEqual(t, tv, users[idx].CreatedAt) } var ptrtimes []*time.Time
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 49.8K bytes - Viewed (0) -
src/crypto/tls/tls_test.go
if err = srv.SetDeadline(time.Now()); err != nil { t.Fatalf("SetDeadline(time.Now()) err: %v", err) } if _, err = srv.Write([]byte("should fail")); err == nil { t.Fatal("Write should have timed out") } // Clear deadline and make sure it still times out if err = srv.SetDeadline(time.Time{}); err != nil { t.Fatalf("SetDeadline(time.Time{}) err: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0)