18 lines
310 B
Go
18 lines
310 B
Go
|
// +build !windows
|
||
|
|
||
|
package chart
|
||
|
|
||
|
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("America/New_York")
|
||
|
}
|
||
|
}
|
||
|
return _eastern
|
||
|
}
|