clock

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now returns the current time in UTC.

func NowUnixNano

func NowUnixNano() int64

NowUnixNano returns the current time in UTC as a Unix timestamp in nanoseconds.

func ToUnixNano

func ToUnixNano(t time.Time) int64

ToUnixNano converts a time.Time value to a Unix timestamp in nanoseconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL