- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 70 for zoneinfo (0.24 sec)
-
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) -
src/time/zoneinfo_test.go
defer time.ResetZoneinfoForTesting() if zoneinfo := time.ZoneinfoForTesting(); testZoneinfo != *zoneinfo { t.Errorf("zoneinfo does not match env variable: got %q want %q", *zoneinfo, testZoneinfo) } } func TestBadLocationErrMsg(t *testing.T) { time.ResetZoneinfoForTesting() loc := "Asia/SomethingNotExist" want := errors.New("unknown time zone " + loc) _, err := time.LoadLocation(loc)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 13 17:06:56 UTC 2023 - 9.9K bytes - Viewed (0) -
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) -
misc/ios/go_ios_exec.go
// Copy timezone file. // // Typical apps have the zoneinfo.zip in the root of their app bundle, // read by the time package as the working directory at initialization. // As we move the working directory to the GOROOT pkg directory, we // install the zoneinfo.zip file in the pkgpath. err := cp( filepath.Join(dstbase, pkgpath), filepath.Join(cwd, "lib", "time", "zoneinfo.zip"), ) if err != nil { return "", err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 23.4K bytes - Viewed (0) -
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) -
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) -
pkg/scheduler/framework/plugins/volumerestrictions/volume_restrictions_test.go
tests := []struct { pod *v1.Pod nodeInfo *framework.NodeInfo name string preFilterWantStatus *framework.Status wantStatus *framework.Status }{ { pod: &v1.Pod{}, nodeInfo: framework.NewNodeInfo(), name: "nothing",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 17:40:39 UTC 2023 - 17.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeports/node_ports_test.go
} func TestNodePorts(t *testing.T) { tests := []struct { pod *v1.Pod nodeInfo *framework.NodeInfo name string wantPreFilterStatus *framework.Status wantFilterStatus *framework.Status }{ { pod: &v1.Pod{}, nodeInfo: framework.NewNodeInfo(), name: "skip filter",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 19 11:02:11 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/filtering.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 01 10:24:54 UTC 2023 - 14.6K bytes - Viewed (0) -
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)