- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 3,584 for Hour (0.05 sec)
-
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) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
var hour = -1 var minute = -1 var second = -1 var dayOfMonth = -1 var month = -1 var year = -1 val matcher = TIME_PATTERN.matcher(s) while (pos < limit) { val end = dateCharacterOffset(s, pos + 1, limit, true) matcher.region(pos, end) when { hour == -1 && matcher.usePattern(TIME_PATTERN).matches() -> {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 06 04:12:05 UTC 2024 - 23.1K bytes - Viewed (0) -
internal/s3select/sql/parser_test.go
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0)