Get Nanosecond Offset within Second
Examples
Filter
Nanosecond returns the nanosecond offset within the second specified by t, in the range [0, 999999999].
package main
import (
"fmt"
"time"
)
func main() {
now := time.Now()
fmt.Println(now.Nanosecond())
}