Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,999 for Hour (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-runtime/build-profile/src/test/groovy/org/gradle/profile/ProfileReportRendererTest.groovy

    <td class="numeric">30.000s</td>
    <td>Did No Work</td>
    </tr>
    </table>
    </div>
    </div>"""))
        }
    
        private static long time(int hour, int mins, int secs, int ms = 0) {
            def cal = new GregorianCalendar(2010, 1, 5, hour, mins, secs)
            cal.add(Calendar.MILLISECOND, ms)
            cal.getTimeInMillis()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 13:41:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    package upload
    
    import (
    	"fmt"
    	"os"
    	"sync"
    	"time"
    
    	"golang.org/x/telemetry/internal/counter"
    )
    
    // time and date handling
    
    var distantPast = 21 * 24 * time.Hour
    
    // reports that are too old (21 days) are not uploaded
    func (u *uploader) tooOld(date string, uploadStartTime time.Time) bool {
    	t, err := time.Parse("2006-01-02", date)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. pkg/kubelet/util/cache/object_cache_test.go

    	testObj := testObject{
    		key: "foo",
    		val: "bar",
    	}
    	objectCache := NewFakeObjectCache(func() (interface{}, error) {
    		return nil, fmt.Errorf("Unexpected Error: updater should never be called in this test")
    	}, 1*time.Hour, testingclock.NewFakeClock(time.Now()))
    
    	err := objectCache.Add(testObj.key, testObj.val)
    	if err != nil {
    		t.Errorf("Unable to add obj %#v by key: %s", testObj, testObj.key)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 17 13:19:08 UTC 2021
    - 2.6K bytes
    - Viewed (0)
Back to top