- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 3,920 for Hour (0.11 sec)
-
pkg/log/config.go
buf[4] = '-' buf[5] = byte((month)/10) + '0' buf[6] = byte((month)%10) + '0' buf[7] = '-' buf[8] = byte((day)/10) + '0' buf[9] = byte((day)%10) + '0' buf[10] = 'T' buf[11] = byte((hour)/10) + '0' buf[12] = byte((hour)%10) + '0' buf[13] = ':' buf[14] = byte((minute)/10) + '0' buf[15] = byte((minute)%10) + '0' buf[16] = ':' buf[17] = byte((second)/10) + '0' buf[18] = byte((second)%10) + '0'
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.1K bytes - Viewed (0) -
pkg/test/csrctrl/controllers/start_csrctrl.go
) const ( // Define the root path for signer to store CA and private key files. signerRoot = "/tmp/pki/signer/" // The duration of the signed certificates certificateDuration = 1 * time.Hour ) type SignerRootCert struct { Signer string Rootcert string } func RunCSRController(signerNames string, stop <-chan struct{}, clients []kube.Client) ([]SignerRootCert, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 09 02:22:47 UTC 2023 - 2K bytes - Viewed (0) -
internal/config/identity/ldap/config.go
"time" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/config" "github.com/minio/pkg/v3/ldap" ) const ( defaultLDAPExpiry = time.Hour * 1 minLDAPExpiry time.Duration = 15 * time.Minute maxLDAPExpiry time.Duration = 365 * 24 * time.Hour ) // Config contains AD/LDAP server connectivity information. type Config struct { LDAP ldap.Config
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
return Time{time} } // Date returns the Time corresponding to the supplied parameters // by wrapping time.Date. func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time { return Time{time.Date(year, month, day, hour, min, sec, nsec, loc)} } // Now returns the current local time. func Now() Time { return Time{time.Now()} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 5.2K bytes - Viewed (0) -
src/net/conn_test.go
"time" ) // someTimeout is used just to test that net.Conn implementations // don't explode when their SetFooDeadline methods are called. // It isn't actually used for testing timeouts. const someTimeout = 1 * time.Hour func TestConnAndListener(t *testing.T) { for i, network := range []string{"tcp", "unix", "unixpacket"} { i, network := i, network t.Run(network, func(t *testing.T) { if !testableNetwork(network) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 1.8K bytes - Viewed (0) -
src/time/zoneinfo_windows_test.go
package time_test import ( "internal/syscall/windows/registry" "testing" . "time" ) func testZoneAbbr(t *testing.T) { t1 := Now() // discard nsec t1 = Date(t1.Year(), t1.Month(), t1.Day(), t1.Hour(), t1.Minute(), t1.Second(), 0, t1.Location()) t2, err := Parse(RFC1123, t1.Format(RFC1123)) if err != nil { t.Fatalf("Parse failed: %v", err) } if t1 != t2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 07:20:34 UTC 2023 - 1.8K bytes - Viewed (0) -
src/net/tcpsock_test.go
if err != nil { b.Fatal(err) } defer c.Close() if err := <-done; err != nil { b.Fatal(err) } defer serv.Close() c.SetWriteDeadline(time.Now().Add(2 * time.Hour)) deadline := time.Now().Add(time.Hour) b.ResetTimer() for i := 0; i < b.N; i++ { c.SetReadDeadline(deadline) deadline = deadline.Add(1) } } func TestDialTCPDefaultKeepAlive(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 17.7K bytes - Viewed (0) -
pkg/controlplane/apiserver/options/options.go
lowBound := time.Hour upBound := time.Duration(1<<32) * time.Second if completed.Authentication.ServiceAccounts.MaxExpiration < lowBound || completed.Authentication.ServiceAccounts.MaxExpiration > upBound { return CompletedOptions{}, fmt.Errorf("the service-account-max-token-expiration must be between 1 hour and 2^32 seconds") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 12:19:56 UTC 2024 - 15.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/cache/expiring_test.go
} record1 := "bob" record2 := "alice" // when empty, record is stored cache.Set("foo", record1, time.Hour) if result, ok := cache.Get("foo"); !ok || result != record1 { t.Errorf("Expected %#v, true, got %#v, %v", record1, result, ok) } // newer record overrides cache.Set("foo", record2, time.Hour) if result, ok := cache.Get("foo"); !ok || result != record2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 22 15:51:23 UTC 2023 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/duration/duration.go
if s == 0 { return fmt.Sprintf("%dm", minutes) } return fmt.Sprintf("%dm%ds", minutes, s) } else if minutes < 60*3 { return fmt.Sprintf("%dm", minutes) } hours := int(d / time.Hour) if hours < 8 { m := int(d/time.Minute) % 60 if m == 0 { return fmt.Sprintf("%dh", hours) } return fmt.Sprintf("%dh%dm", hours, m) } else if hours < 48 { return fmt.Sprintf("%dh", hours)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 29 09:44:02 UTC 2023 - 2.8K bytes - Viewed (0)