timeutil

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package timeutil provides timezone-aware time formatting utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRFC3339

func FormatRFC3339(t time.Time) string

FormatRFC3339 formats the given time in RFC3339 format using the timezone from TZ environment variable.

func GetLocation

func GetLocation() *time.Location

GetLocation returns the timezone location based on TZ environment variable. The result is cached after the first call.

func ResetLocationCache

func ResetLocationCache()

ResetLocationCache resets the cached location. This is intended for testing purposes only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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