- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for initLocal (0.11 sec)
-
src/time/zoneinfo_js.go
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 z.offset = offset * 60
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_wasip1.go
// 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) -
src/time/zoneinfo_unix.go
// NixOS has /etc/zoneinfo. var platformZoneSources = []string{ "/usr/share/zoneinfo/", "/usr/share/lib/zoneinfo/", "/usr/lib/locale/TZ/", "/etc/zoneinfo", } func initLocal() { // consult $TZ to find the time zone to use. // no $TZ means use the system default /etc/localtime. // $TZ="" means use UTC. // $TZ="foo" or $TZ=":foo" if foo is an absolute path, then the file pointed
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
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 localLoc = *UTC } func init() { loadTzinfoFromTzdata = androidLoadTzinfoFromTzdata } var allowGorootSource = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 2.2K bytes - Viewed (0) -
src/time/zoneinfo_ios.go
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_plan9.go
return l, nil } func loadZoneFilePlan9(name string) (*Location, error) { b, err := readFile(name) if err != nil { return nil, err } return loadZoneDataPlan9(string(b)) } func initLocal() { t, ok := syscall.Getenv("timezone") if ok { if z, err := loadZoneDataPlan9(t); err == nil { localLoc = *z return } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 2.7K bytes - Viewed (0) -
src/time/zoneinfo_windows.go
}, DaylightDate: syscall.Systemtime{Month: 10, Day: 1, Hour: 2}, DaylightBias: -60, } func initLocal() { var i syscall.Timezoneinformation if _, err := syscall.GetTimeZoneInformation(&i); err != nil { localLoc.name = "UTC" return } initLocalFromTZI(&i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 07:20:34 UTC 2023 - 6.6K bytes - Viewed (0) -
src/time/zoneinfo.go
var Local *Location = &localLoc // localLoc is separate so that initLocal can initialize // it even if a client has changed Local. var localLoc Location var localOnce sync.Once func (l *Location) get() *Location { if l == nil { return &utcLoc } if l == &localLoc { localOnce.Do(initLocal) } return l } // String returns a descriptive name for the time zone information,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0)