- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for zoneinfo (0.19 sec)
-
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_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_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_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/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) -
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) -
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)