clock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 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 TimeFromUnixNano added in v0.5.0

func TimeFromUnixNano(nano int64) time.Time

TimeFromUnixNano converts a Unix timestamp in nanoseconds to a time.Time value in UTC.

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