Skip to content

bcicen/tzdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

tzdata

Embeddable timezone database for Go projects

Build

go get -d github.com/bcicen/tzdata && \
cd ${GOPATH}/github.com/bcicen/tzdata && \
go generate

Usage

Once the timezone data is built, it may be used in place of time.LoadLocation():

package main

import (
	"fmt"
	"time"

	"github.com/bcicen/tzdata"
)

func main() {
	loc, _ := tzdata.Load("America/New_York")
	fmt.Println(time.Now().In(loc))
}

About

Embedded timezone database for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages