MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / UinTimestamp

Function UinTimestamp

utils/time.go:12–17  ·  view source on GitHub ↗
(uin uint32)

Source from the content-addressed store, hash-verified

10}
11
12func UinTimestamp(uin uint32) string {
13 currentTime := time.Now()
14 formattedTime := currentTime.Format("0102150405")
15 milliseconds := currentTime.Nanosecond() / 1000000
16 return fmt.Sprintf("%d_%s%02d_%d", uin, formattedTime, currentTime.Year()%100, milliseconds)
17}

Callers 1

BuildGetMediaListReqFunction · 0.92

Calls 1

FormatMethod · 0.80

Tested by

no test coverage detected