TimeFromUnix returns the Time equivalent to the Unix Time t provided in seconds.
(t int64)
| 57 | // TimeFromUnix returns the Time equivalent to the Unix Time t |
| 58 | // provided in seconds. |
| 59 | func TimeFromUnix(t int64) Time { |
| 60 | return Time(t * second) |
| 61 | } |
| 62 | |
| 63 | // TimeFromUnixNano returns the Time equivalent to the Unix Time |
| 64 | // t provided in nanoseconds. |