Unix returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UTC.
()
| 99 | // Unix returns t as a Unix time, the number of seconds elapsed |
| 100 | // since January 1, 1970 UTC. |
| 101 | func (t Time) Unix() int64 { |
| 102 | return int64(t) / second |
| 103 | } |
| 104 | |
| 105 | // UnixNano returns t as a Unix time, the number of nanoseconds elapsed |
| 106 | // since January 1, 1970 UTC. |
no outgoing calls