MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / currentWeek

Function currentWeek

internal/caches/item.go:17–19  ·  view source on GitHub ↗

计算当前周 不要用YW,因为需要计算两周是否临近

()

Source from the content-addressed store, hash-verified

15// 计算当前周
16// 不要用YW,因为需要计算两周是否临近
17func currentWeek() int32 {
18 return int32(fasttime.Now().Unix() / 86400)
19}
20
21type Item struct {
22 Type ItemType `json:"-"`

Callers 2

PurgeLFUMethod · 0.85
IncreaseHitMethod · 0.85

Calls 2

NowFunction · 0.92
UnixMethod · 0.80

Tested by

no test coverage detected