- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for isdst (0.05 sec)
-
src/time/zoneinfo.go
offset = zone.offset start = tx[lo].when // end = maintained during the search isDST = zone.isDST // If we're at the end of the known zone transitions, // try the extend string. if lo == len(tx)-1 && l.extend != "" { if ename, eoffset, estart, eend, eisDST, ok := tzset(l.extend, start, sec); ok { return ename, eoffset, estart, eend, eisDST } } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0) -
src/time/zoneinfo_read.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 14.4K bytes - Viewed (0) -
src/time/zoneinfo_test.go
} { name, off, start, end, isDST, ok := time.Tzset(test.inStr, test.inEnd, test.inSec) if name != test.name || off != test.off || start != test.start || end != test.end || isDST != test.isDST || ok != test.ok { t.Errorf("tzset(%q, %d, %d) = %q, %d, %d, %d, %t, %t, want %q, %d, %d, %d, %t, %t", test.inStr, test.inEnd, test.inSec, name, off, start, end, isDST, ok, test.name, test.off, test.start, test.end, test.isDST, test.ok)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 13 17:06:56 UTC 2023 - 9.9K bytes - Viewed (0) -
src/time/zoneinfo_plan9.go
// standard timezone offset o, err := atoi(f[1]) if err != nil { return nil, errBadData } zones[0] = zone{name: f[0], offset: o, isDST: false} // alternate timezone offset o, err = atoi(f[3]) if err != nil { return nil, errBadData } zones[1] = zone{name: f[2], offset: o, isDST: true} // transition time pairs var tx []zoneTrans f = f[4:] for i := 0; i < len(f); i++ { zi := 0 if i%2 == 0 {
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/go/internal/gccgoimporter/testdata/issue29198.gox
{ .time.wall <type -8>; .time.ext <type -4>; .time.loc <type 14 *<type 15 "time.Location" <type 16 struct { .time.name <type -16>; .time.zone <type 17 [] <type 18 ".time.zone" <type 19 struct { .time.name <type -16>; .time.offset <type -11>; .time.isDST <type -15>; }>>>; .time.tx <type 20 [] <type 21 ".time.zoneTrans" <type 22 struct { .time.when <type -4>; .time.index <type -5>; .time.isstd <type -15>; .time.isutc <type -15>; }>>>; .time.cacheStart <type -4>; .time.cacheEnd <type -4>; .time.cacheZone...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 12 23:01:16 UTC 2018 - 6.4K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/time.gox
func (l <type 15>) .time.lookup (sec <type -4>) (name <type -16>, offset <type -11>, isDST <type -15>, start <type -4>, end <type -4>); func (l <type 15>) .time.lookupFirstZone () <type -11>; func (l <type 15>) .time.firstZoneUsed () <type -15>; func (l <type 15>) .time.lookupName (name <type -16>, unix <type -4>) (offset <type -11>, isDST <type -15>, ok <type -15>); >>; }> func (t <type 3>) String () <type -16>;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K bytes - Viewed (0) -
src/time/zoneinfo_windows.go
// return above. std.offset = -int(i.Bias+i.StandardBias) * 60 dst := &l.zone[1] dst.name = dstname dst.offset = -int(i.Bias+i.DaylightBias) * 60 dst.isDST = true // Arrange so that d0 is first transition date, d1 second, // i0 is index of zone after first transition, i1 second. d0 := &i.StandardDate d1 := &i.DaylightDate i0 := 0 i1 := 1
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/time.go
func UnixMicro(usec int64) Time { return Unix(usec/1e6, (usec%1e6)*1e3) } // IsDST reports whether the time in the configured location is in Daylight Savings Time. func (t Time) IsDST() bool { _, _, _, _, isDST := t.loc.lookup(t.Unix()) return isDST } func isLeap(year int) bool { return year%4 == 0 && (year%100 != 0 || year%400 == 0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
api/go1.17.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 18K bytes - Viewed (0) -
src/time/time_test.go
6: {Date(2009, 1, 1, 12, 0, 0, 0, tzFixed), false}, 7: {Date(2009, 6, 1, 12, 0, 0, 0, tzFixed), false}, } for i, tt := range tests { got := tt.time.IsDST() if got != tt.want { t.Errorf("#%d:: (%#v).IsDST()=%t, want %t", i, tt.time.Format(RFC3339), got, tt.want) } } } func TestTimeAddSecOverflow(t *testing.T) { // Test it with positive delta.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)