TimeToUnix transform time to Unix time, the number of seconds elapsed
(t time.Time)
| 199 | |
| 200 | // TimeToUnix transform time to Unix time, the number of seconds elapsed |
| 201 | func TimeToUnix(t time.Time) int64 { |
| 202 | return t.Unix() |
| 203 | } |
| 204 | |
| 205 | // UnixToTime transform Unix time to local Time |
| 206 | func UnixToTime(tt int64) time.Time { |
no outgoing calls
no test coverage detected
searching dependent graphs…