TimeFromMillis is a helper to turn milliseconds -> time.Time
(ms int64)
| 26 | |
| 27 | // TimeFromMillis is a helper to turn milliseconds -> time.Time |
| 28 | func TimeFromMillis(ms int64) time.Time { |
| 29 | return time.Unix(0, ms*nanosecondsInMillisecond) |
| 30 | } |
| 31 | |
| 32 | // FormatTimeMillis returns a human readable version of the input time (in milliseconds). |
| 33 | func FormatTimeMillis(ms int64) string { |
no outgoing calls