- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for cacheStart (0.14 sec)
-
src/time/zoneinfo.go
// static one-element cache that gives the correct // zone for the time when the Location was created. // if cacheStart <= t < cacheEnd, // lookup can return cacheZone. // The units for cacheStart and cacheEnd are seconds // since January 1, 1970 UTC, to match the argument // to lookup. cacheStart int64 cacheEnd int64 cacheZone *zone } // A zone represents a single time zone such as CET. type zone struct {
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_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,
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_plan9.go
// Fill in the cache with information about right now, // since that will be the most common lookup. sec, _, _ := now() for i := range tx { if tx[i].when <= sec && (i+1 == len(tx) || sec < tx[i+1].when) { l.cacheStart = tx[i].when l.cacheEnd = omega if i+1 < len(tx) { l.cacheEnd = tx[i+1].when } l.cacheZone = &l.zone[tx[i].index] } } return l, nil }
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_read.go
l.cacheStart = tx[i].when l.cacheEnd = omega l.cacheZone = &l.zone[tx[i].index] if i+1 < len(tx) { l.cacheEnd = tx[i+1].when } else if l.extend != "" { // If we're at the end of the known zone transitions, // try the extend string. if name, offset, estart, eend, isDST, ok := tzset(l.extend, l.cacheStart, sec); ok { l.cacheStart = estart
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/time.go
func (t Time) abs() uint64 { l := t.loc // Avoid function calls when possible. if l == nil || l == &localLoc { l = l.get() } sec := t.unixSec() if l != &utcLoc { if l.cacheZone != nil && l.cacheStart <= sec && sec < l.cacheEnd { sec += int64(l.cacheZone.offset) } else { _, offset, _, _, _ := l.lookup(sec) sec += int64(offset) } } return uint64(sec + (unixToInternal + internalToAbsolute))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 50.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux.go
if e1 != 0 { err = errnoErr(e1) } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) { _, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0) if e1 != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 05:26:45 UTC 2024 - 54.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go
attr := &SchedAttr{} if err := schedGetattr(pid, attr, SizeofSchedAttr, flags); err != nil { return nil, err } return attr, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 05:26:45 UTC 2024 - 77.5K bytes - Viewed (0)