- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 178 for zoneinfo (0.17 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) -
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) -
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) -
src/time/zoneinfo_android.go
// Parse the "tzdata" packed timezone file used on Android. // The format is lifted from ZoneInfoDB.java and ZoneInfo.java in // java/libcore/util in the AOSP. package time import ( "errors" "syscall" ) var platformZoneSources = []string{ "/system/usr/share/zoneinfo/tzdata", "/data/misc/zoneinfo/current/tzdata", } func initLocal() { // TODO(elias.naur): getprop persist.sys.timezone
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 2.2K bytes - Viewed (0) -
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) -
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) -
src/time/zoneinfo_js.go
// license that can be found in the LICENSE file. //go:build js && wasm package time import ( "internal/itoa" "syscall/js" ) var platformZoneSources = []string{ "/usr/share/zoneinfo/", "/usr/share/lib/zoneinfo/", "/usr/lib/locale/TZ/", } func initLocal() { localLoc.name = "Local" z := zone{} d := js.Global().Get("Date").New() offset := d.Call("getTimezoneOffset").Int() * -1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 29 20:05:34 UTC 2022 - 1K bytes - Viewed (0) -
src/time/zoneinfo_ios.go
func gorootZoneSource(goroot string) (string, bool) { // The working directory at initialization is the root of the // app bundle: "/private/.../bundlename.app". That's where we // keep zoneinfo.zip for tethered iOS builds. // For self-hosted iOS builds, the zoneinfo.zip is in GOROOT. var roots []string if goroot != "" { roots = append(roots, goroot+"/lib/time") } wd, err := syscall.Getwd() if err == nil { roots = append(roots, wd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 1K bytes - Viewed (0) -
src/time/zoneinfo_goroot.go
//go:build !ios && !android package time func gorootZoneSource(goroot string) (string, bool) { if goroot == "" { return "", false } return goroot + "/lib/time/zoneinfo.zip", true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 348 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)