Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for zoneinfo (0.4 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/zoneinfo.zip

    Dmitri Shuralyov <******@****.***> 1706824550 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 18:20:41 UTC 2024
    - 392.3K bytes
    - Viewed (1)
  3. src/time/zoneinfo_unix.go

    //go:build unix && !ios && !android
    
    // 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 (
    	"syscall"
    )
    
    // Many systems use /usr/share/zoneinfo, Solaris 2 has
    // /usr/share/lib/zoneinfo, IRIX 6 has /usr/lib/locale/TZ,
    // NixOS has /etc/zoneinfo.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 04 02:26:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. 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)
  5. lib/time/update.bash

    cd work
    mkdir zoneinfo
    curl -sS -L -O https://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
    curl -sS -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
    tar xzf tzcode$CODE.tar.gz
    tar xzf tzdata$DATA.tar.gz
    
    if ! make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo posix_only >make.out 2>&1; then
    	cat make.out
    	exit 2
    fi
    
    cd zoneinfo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 18:20:41 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top