Standard library / time
time.Time.UnixMicro()
Return microseconds since Unix epoch; undefined if the result cannot fit int64. Expected stdout: '1500000\n'.
Formal Syntax & Structure
go syntaxgo
func (t Time) UnixMicro() int64Return Value
int64
Return microseconds since Unix epoch; undefined if the result cannot fit int64.
Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(time.Unix(1, 500000000).UnixMicro()) }