tz

package
v0.7.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tz provides the prepopulated list of selectable timezones and a small search helper for picking one interactively.

Index

Constants

This section is empty.

Variables

View Source
var Zones = []string{}/* 526 elements not displayed */

Zones is the prepopulated, sorted list of selectable timezones (IANA names plus the special "Local" and "UTC").

Functions

func Filter

func Filter(query string) []string

Filter returns the zones matching query. Matching is case-insensitive, treats "/" and "_" as spaces, and requires every whitespace-separated term in the query to appear (so "new york" matches "America/New_York"). An empty query returns the full list.

func IndexOf

func IndexOf(name string) int

IndexOf returns the position of name in Zones, or -1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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