docs/content/en/methods/time/UnixNano.md
raw| 1 | --- |
| 2 | title: UnixNano |
| 3 | description: Returns the given time.Time value expressed as the number of nanoseconds elapsed since January 1, 1970 UTC. |
| 4 | categories: [] |
| 5 | keywords: [] |
| 6 | params: |
| 7 | functions_and_methods: |
| 8 | returnType: int64 |
| 9 | signatures: [TIME.UnixNano] |
| 10 | --- |
| 11 | |
| 12 | See [Unix epoch][]. |
| 13 | |
| 14 | ```go-html-template |
| 15 | {{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }} |
| 16 | {{ $t.UnixNano }} → 1674891898000000000 |
| 17 | ``` |
| 18 | |
| 19 | [Unix epoch]: https://en.wikipedia.org/wiki/Unix_time |