Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/GoEdgeLab/EdgeNode
/ GMTTime
Function
GMTTime
internal/utils/time.go:14–17 ·
view source on GitHub ↗
GMTTime 计算GMT时间
(t time.Time)
Source
from the content-addressed store, hash-verified
12
13
// GMTTime 计算GMT时间
14
func
GMTTime(t time.Time) time.Time {
15
_, offset := time.Now().Zone()
16
return
t.Add(-time.Duration(offset) * time.Second)
17
}
Callers
2
TestGMTTime
Function · 0.92
addExpiresHeader
Method · 0.92
Calls
1
Add
Method · 0.65
Tested by
1
TestGMTTime
Function · 0.74