MCPcopy Create free account
hub / github.com/devfeel/mapper / TimeToUnix

Function TimeToUnix

convert.go:201–203  ·  view source on GitHub ↗

TimeToUnix transform time to Unix time, the number of seconds elapsed

(t time.Time)

Source from the content-addressed store, hash-verified

199
200// TimeToUnix transform time to Unix time, the number of seconds elapsed
201func TimeToUnix(t time.Time) int64 {
202 return t.Unix()
203}
204
205// UnixToTime transform Unix time to local Time
206func UnixToTime(tt int64) time.Time {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…