OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.19.4
/
src
/
time
Server IP: 89.117.27.120
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/01/2022 06:13:58 PM
rwxr-xr-x
📄
embed.go
304 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
example_test.go
21.73 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
export_android_test.go
438 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
export_test.go
3.79 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
export_windows_test.go
514 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
format.go
46.22 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
format_test.go
30.5 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
genzabbrs.go
2.95 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
internal_test.go
2.21 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
mono_test.go
7.51 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sleep.go
5.6 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sleep_test.go
18.44 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_plan9.go
1016 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_unix.go
1.01 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
sys_windows.go
1.1 KB
12/01/2022 06:13:01 PM
rw-r--r--
📁
testdata
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
tick.go
2.31 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
tick_test.go
4.01 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
time.go
47.93 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
time_test.go
52.34 KB
12/01/2022 06:13:01 PM
rw-r--r--
📁
tzdata
-
12/01/2022 06:13:56 PM
rwxr-xr-x
📄
tzdata_test.go
2.46 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo.go
17.2 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_abbrs_windows.go
10.34 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_android.go
2.19 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_android_test.go
386 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_goroot.go
348 bytes
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_ios.go
1.05 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_js.go
1.52 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_plan9.go
2.68 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_read.go
14.26 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_test.go
9.82 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_unix.go
1.64 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_unix_test.go
2.31 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_windows.go
6.67 KB
12/01/2022 06:13:01 PM
rw-r--r--
📄
zoneinfo_windows_test.go
1.9 KB
12/01/2022 06:13:01 PM
rw-r--r--
Editing: zoneinfo_unix.go
Close
// Copyright 2009 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. //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. var platformZoneSources = []string{ "/usr/share/zoneinfo/", "/usr/share/lib/zoneinfo/", "/usr/lib/locale/TZ/", } 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 // by foo will be used to initialize timezone; otherwise, file // /usr/share/zoneinfo/foo will be used. tz, ok := syscall.Getenv("TZ") switch { case !ok: z, err := loadLocation("localtime", []string{"/etc"}) if err == nil { localLoc = *z localLoc.name = "Local" return } case tz != "": if tz[0] == ':' { tz = tz[1:] } if tz != "" && tz[0] == '/' { if z, err := loadLocation(tz, []string{""}); err == nil { localLoc = *z if tz == "/etc/localtime" { localLoc.name = "Local" } else { localLoc.name = tz } return } } else if tz != "" && tz != "UTC" { if z, err := loadLocation(tz, platformZoneSources); err == nil { localLoc = *z return } } } // Fall back to UTC. localLoc.name = "UTC" }