go-chart/util/date_windows.go
Will Charczuk 376a8efa36 updates
2017-04-29 13:19:17 -07:00

17 lines
295 B
Go

// +build windows
package util
import "time"
// Eastern returns the eastern timezone.
func (d date) Eastern() *time.Location {
if _eastern == nil {
_easternLock.Lock()
defer _easternLock.Unlock()
if _eastern == nil {
_eastern, _ = time.LoadLocation("EST")
}
}
return _eastern
}