tzcoords

package module
v0.0.0-...-753b168 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 3 Imported by: 0

README

tzcoords

Go package for getting rough lat/lon coords for a time.Location based on data from the IANA Time Zone Database.

Go Reference

Updating

Place an updated zone1970.tab from the IANA Time Zone Database inside ./gen/ and run go generate ./....

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = fmt.Errorf("not found")

ErrNotFound indicates that coordinates for a timezone are unavailable

Functions

func ByLocation

func ByLocation(loc *time.Location) (float64, float64, error)

ByLocation retreives a lat/lot for a Location

func ByString

func ByString(s string) (float64, float64, error)

ByLocation retreives a lat/lot for a IANA time zone identifier

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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