Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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,因为需要计算两周是否临近
17
func
currentWeek() int32 {
18
return
int32(fasttime.Now().Unix() / 86400)
19
}
20
21
type
Item
struct
{
22
Type ItemType `json:
"-"
`
Callers
2
PurgeLFU
Method · 0.85
IncreaseHit
Method · 0.85
Calls
2
Now
Function · 0.92
Unix
Method · 0.80
Tested by
no test coverage detected