Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for zoneinfo (0.1 sec)

  1. src/time/zoneinfo.go

    		// much less dot dot. Likewise, none begin with a slash.
    		return nil, errLocation
    	}
    	zoneinfoOnce.Do(func() {
    		env, _ := syscall.Getenv("ZONEINFO")
    		zoneinfo = &env
    	})
    	var firstErr error
    	if *zoneinfo != "" {
    		if zoneData, err := loadTzinfoFromDirOrZip(*zoneinfo, name); err == nil {
    			if z, err := LoadLocationFromTZData(name, zoneData); err == nil {
    				return z, nil
    			}
    			firstErr = err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. lib/time/mkzip.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Mkzip writes a zoneinfo.zip with the content of the current directory
    // and its subdirectories, with no compression, suitable for package time.
    //
    // Usage:
    //
    //	go run ../../mkzip.go ../../zoneinfo.zip
    //
    // We use this program instead of 'zip -0 -r ../../zoneinfo.zip *' to get
    // a reproducible generator that does not depend on which version of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/time/internal_test.go

    	// set in the process's environment (if any).
    	// This test runs in GOROOT/src/time, so GOROOT is "../..",
    	// but it is theoretically possible
    	sources := []string{"../../lib/time/zoneinfo.zip"}
    	z, err := loadLocation("America/Los_Angeles", sources)
    	if err != nil {
    		panic("cannot load America/Los_Angeles for testing: " + err.Error() + "; you may want to use -tags=timetzdata")
    	}
    	z.name = "Local"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:37 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. src/time/zoneinfo_read.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Parse "zoneinfo" time zone file.
    // This is a fairly standard file format used on OS X, Linux, BSD, Sun, and others.
    // See tzfile(5), https://en.wikipedia.org/wiki/Zoneinfo,
    // and ftp://munnari.oz.au/pub/oldtz/
    
    package time
    
    import (
    	"errors"
    	"internal/bytealg"
    	"runtime"
    	"syscall"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. common/scripts/setup_env.sh

    fi
    if [[ "${IMAGE_NAME:-}" == "" ]]; then
      IMAGE_NAME=build-tools
    fi
    
    DOCKER_GID="${DOCKER_GID:-$(grep '^docker:' /etc/group | cut -f3 -d:)}"
    
    TIMEZONE=$(readlink "$readlink_flags" /etc/localtime | sed -e 's/^.*zoneinfo\///')
    
    TARGET_OUT="${TARGET_OUT:-$(pwd)/out/${TARGET_OS}_${TARGET_ARCH}}"
    TARGET_OUT_LINUX="${TARGET_OUT_LINUX:-$(pwd)/out/linux_${TARGET_ARCH}}"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/net/mail/message_test.go

    		if err != nil && test.valid {
    			t.Errorf("Header(Date: %s).Date(): %v", test.dateStr, err)
    		} else if err == nil && test.exp.IsZero() {
    			// OK.  Used when exact result depends on the
    			// system's local zoneinfo.
    		} else if err == nil && !date.Equal(test.exp) && test.valid {
    			t.Errorf("Header(Date: %s).Date() = %+v, want %+v", test.dateStr, date, test.exp)
    		} else if err == nil && !test.valid { // an invalid expression was tested
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/strategy.go

    	}
    	loc := &url.URL{
    		Scheme:   nodeInfo.Scheme,
    		Host:     net.JoinHostPort(nodeInfo.Hostname, nodeInfo.Port),
    		Path:     fmt.Sprintf("/containerLogs/%s/%s/%s", pod.Namespace, pod.Name, container),
    		RawQuery: params.Encode(),
    	}
    
    	if opts.InsecureSkipTLSVerifyBackend {
    		return loc, nodeInfo.InsecureSkipTLSVerifyTransport, nil
    	}
    	return loc, nodeInfo.Transport, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    	enoughPodsTests := []struct {
    		pod                       *v1.Pod
    		nodeInfo                  *framework.NodeInfo
    		name                      string
    		args                      config.NodeResourcesFitArgs
    		wantInsufficientResources []InsufficientResource
    		wantStatus                *framework.Status
    	}{
    		{
    			pod: &v1.Pod{},
    			nodeInfo: framework.NewNodeInfo(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  9. pkg/kubelet/lifecycle/predicate_test.go

    			),
    			expectedPod: makeTestPod(
    				v1.ResourceList{}, // Requests
    				v1.ResourceList{}, // Limits
    			),
    		},
    	} {
    		nodeInfo := schedulerframework.NewNodeInfo()
    		nodeInfo.SetNode(test.node)
    		pod := removeMissingExtendedResources(test.pod, nodeInfo)
    		if diff := cmp.Diff(test.expectedPod, pod); diff != "" {
    			t.Errorf("unexpected pod (-want, +got):\n%s", diff)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    	maxAttachLimit int64,
    	topology map[string]string) error {
    
    	nodeInfo, err := csiKubeClient.StorageV1().CSINodes().Get(context.TODO(), string(nim.nodeName), metav1.GetOptions{})
    	if nodeInfo == nil || errors.IsNotFound(err) {
    		nodeInfo, err = nim.CreateCSINode()
    	}
    	if err != nil {
    		return err
    	}
    
    	return nim.installDriverToCSINode(nodeInfo, driverName, driverNodeID, maxAttachLimit, topology)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top