- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for zoneTrans (0.19 sec)
-
src/time/zoneinfo_plan9.go
} 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 { zi = 1 } t, err := atoi(f[i]) if err != nil { return nil, errBadData } t -= zones[0].offset tx = append(tx, zoneTrans{when: int64(t), index: uint8(zi)}) } // Committed to succeed.
Registered: 2024-06-12 16:32 - Last Modified: 2023-02-16 23:09 - 2.7K bytes - Viewed (0) -
src/time/zoneinfo.go
// calculations involving intervals that may cross daylight savings time // boundaries. type Location struct { name string zone []zone tx []zoneTrans // The tzdata information can be followed by a string that describes // how to handle DST transitions not recorded in zoneTrans. // The format is the TZ environment variable without a colon; see // https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html.
Registered: 2024-06-12 16:32 - Last Modified: 2024-04-04 14:21 - 18.2K bytes - Viewed (0) -
src/time/zoneinfo_windows.go
std := &l.zone[0] std.name = stdname if nzone == 1 { // No daylight savings. std.offset = -int(i.Bias) * 60 l.cacheStart = alpha l.cacheEnd = omega l.cacheZone = std l.tx = make([]zoneTrans, 1) l.tx[0].when = l.cacheStart l.tx[0].index = 0 return } // StandardBias must be ignored if StandardDate is not set, // so this computation is delayed until after the nzone==1
Registered: 2024-06-12 16:32 - Last Modified: 2023-09-14 07:20 - 6.6K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/issue29198.gox
func (l <esc:0x22> <type 24...
Registered: 2024-06-12 16:32 - Last Modified: 2018-12-12 23:01 - 6.4K bytes - Viewed (0) -
src/time/zoneinfo_read.go
// GMT+1 will return GMT-1 instead of GMT+1 or -01. if name != "Etc/GMT+0" { // GMT+0 is OK zones[i].name = name[4:] } } } // Now the transition time info. tx := make([]zoneTrans, n[NTime]) for i := range tx { var n int64 if !is64 { if n4, ok := txtimes.big4(); !ok { return nil, errBadData } else { n = int64(int32(n4)) } } else {
Registered: 2024-06-12 16:32 - Last Modified: 2024-05-15 19:57 - 14.4K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/time.gox
func (l <type 15 *<type 6>>)...
Registered: 2024-06-12 16:32 - Last Modified: 2021-09-30 21:33 - 7.3K bytes - Viewed (0)