UnixNano returns t as a Unix time, the number of nanoseconds elapsed since January 1, 1970 UTC.
()
| 105 | // UnixNano returns t as a Unix time, the number of nanoseconds elapsed |
| 106 | // since January 1, 1970 UTC. |
| 107 | func (t Time) UnixNano() int64 { |
| 108 | return int64(t) * nanosPerTick |
| 109 | } |
| 110 | |
| 111 | // The number of digits after the dot. |
| 112 | var dotPrecision = int(math.Log10(float64(second))) |
no outgoing calls