timestamp

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package timestamp provides utilities for handling timestamps

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTime

func GetTime() time.Time

GetTime returns the current time in UTC, honoring SOURCE_DATE_EPOCH if set. SOURCE_DATE_EPOCH is a Unix timestamp used for reproducible builds. If SOURCE_DATE_EPOCH is not set or invalid, it returns time.Now().UTC().

Types

This section is empty.

Jump to

Keyboard shortcuts

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