Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 178 for zoneinfo (0.15 sec)

  1. src/time/export_test.go

    	localLoc = Location{}
    }
    
    func ForceUSPacificForTesting() {
    	ResetLocalOnceForTest()
    	localOnce.Do(initTestingZone)
    }
    
    func ZoneinfoForTesting() *string {
    	return zoneinfo
    }
    
    func ResetZoneinfoForTesting() {
    	zoneinfo = nil
    	zoneinfoOnce = sync.Once{}
    }
    
    var (
    	DisablePlatformSources = disablePlatformSources
    	GorootZoneSource       = gorootZoneSource
    	ParseTimeZone          = parseTimeZone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 19:23:32 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. lib/time/README

    The zoneinfo.zip archive contains time zone files compiled using
    the code and data maintained as part of the IANA Time Zone Database.
    The IANA asserts that the database is in the public domain.
    
    For more information, see
    https://www.iana.org/time-zones
    ftp://ftp.iana.org/tz/code/tz-link.html
    https://datatracker.ietf.org/doc/html/rfc6557
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 15 02:18:46 UTC 2021
    - 390 bytes
    - Viewed (0)
  3. src/time/zoneinfo_wasip1.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package time
    
    // in wasip1 zoneinfo is managed by the runtime.
    var platformZoneSources = []string{}
    
    func initLocal() {
    	localLoc.name = "Local"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:10 UTC 2023
    - 307 bytes
    - Viewed (0)
  4. 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)
  5. src/time/zoneinfo_unix_test.go

    			t.Errorf("invalid Local location name for %q: got %q want %q", c.tz, time.Local, c.local)
    		}
    	}
    
    	time.ResetLocalOnceForTest()
    	// The file may not exist on Solaris 2 and IRIX 6.
    	path := "/usr/share/zoneinfo/Asia/Shanghai"
    	os.Setenv(env, path)
    	if _, err := os.Stat(path); os.IsNotExist(err) {
    		if time.Local.String() != "UTC" {
    			t.Errorf(`invalid path should fallback to UTC: got %q want "UTC"`, time.Local)
    		}
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. 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)
  7. src/time/tzdata_test.go

    			}
    		}
    		if found != 2 {
    			t.Errorf("test must be updated for change to time.Location struct")
    		}
    	}
    }
    
    // equal is a small version of reflect.DeepEqual that we use to
    // compare the values of zoneinfo unexported fields.
    func equal(t *testing.T, f1, f2 reflect.Value) bool {
    	switch f1.Type().Kind() {
    	case reflect.Slice:
    		if f1.Len() != f2.Len() {
    			return false
    		}
    		for i := 0; i < f1.Len(); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 20:57:35 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. src/cmd/dist/buildgo.go

    }
    
    // mktzdata src/time/tzdata/zzipdata.go:
    //
    //	package tzdata
    //	const zipdata = "PK..."
    func mktzdata(dir, file string) {
    	zip := readfile(filepath.Join(dir, "../../../lib/time/zoneinfo.zip"))
    
    	var buf strings.Builder
    	writeHeader(&buf)
    	fmt.Fprintf(&buf, "package tzdata\n")
    	fmt.Fprintln(&buf)
    	fmt.Fprintf(&buf, "const zipdata = %s\n", quote(zip))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:44:00 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. 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)
  10. src/time/zoneinfo_windows.go

    package time
    
    import (
    	"errors"
    	"internal/syscall/windows/registry"
    	"syscall"
    )
    
    var platformZoneSources []string // none: Windows uses system calls instead
    
    // TODO(rsc): Fall back to copy of zoneinfo files.
    
    // BUG(brainman,rsc): On Windows, the operating system does not provide complete
    // time zone information.
    // The implementation assumes that this year's rules for daylight savings
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top