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

Method UnixFloor

internal/utils/fasttime/time_fast.go:62–64  ·  view source on GitHub ↗

UnixFloor 取整

(seconds int)

Source from the content-addressed store, hash-verified

60
61// UnixFloor 取整
62func (this *FastTime) UnixFloor(seconds int) int64 {
63 return this.unixTime / int64(seconds) * int64(seconds)
64}
65
66// UnixCell 取整并加1
67func (this *FastTime) UnixCell(seconds int) int64 {

Callers 2

TestFastTime_UnixFloorFunction · 0.80
AddMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestFastTime_UnixFloorFunction · 0.64