Debian Codegraph @

docs/content/en/methods/time/UnixMicro.md

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