timezone

package
v0.0.0-...-4ee5816 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package timezone is just a few simple utilities for dealing with timezones

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(ctx context.Context, timezone string) context.Context

Context adds timezone value to context for immediate use

func ForContext

func ForContext(ctx context.Context) string

ForContext pulls timezone value for context

func ForContextSafe

func ForContextSafe(ctx context.Context) string

ForContextSafe pulls timezone value for context, defaults to UTC if no timezone set

func GetTZList

func GetTZList() []string

GetTZList returns all timezones

Types

This section is empty.

Jump to

Keyboard shortcuts

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