timeutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NowUTC

func NowUTC() time.Time

NowUTC returns the current clock time normalized to UTC.

func UnixNanoUTC

func UnixNanoUTC(nanos int64) time.Time

UnixNanoUTC converts a Unix timestamp in nanoseconds to UTC. Non-positive values return the zero time so callers can preserve optional timestamp semantics.

func UnixUTC

func UnixUTC(seconds int64) time.Time

UnixUTC converts a Unix timestamp in seconds to UTC. Non-positive values return the zero time so callers can preserve optional timestamp semantics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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