timezones

package
v0.0.0-...-49a0fbc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package timezones returns times for various geographic locatons.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt struct{}

Opt contains config options for the Time package.

type Timezones

type Timezones struct {
	// contains filtered or unexported fields
}

Timezones controller returns times for various geographic locations.

func New

func New(o Opt, g *geo.Geo) *Timezones

New returns a new instance of Time.

func (*Timezones) Dump

func (t *Timezones) Dump() ([]byte, error)

Dump produces a gob dump of the cached data.

func (*Timezones) Query

func (t *Timezones) Query(q string) ([]string, error)

Query parses a given query string and returns the answer. For the time package, the query is a location name.

Jump to

Keyboard shortcuts

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