Documentation
¶
Overview ¶
Package timezone provides timezone conversion helpers for the SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Eastern = loadEastern(time.LoadLocation)
Eastern is the US/Eastern timezone location used for normalizing API timestamps.
Functions ¶
func ToEastern ¶
ToEastern converts a Unix timestamp to time.Time in US/Eastern timezone. A zero or negative timestamp — how a JSON null or an absent array cell decodes — returns the zero time.Time, so callers can test for absence with IsZero instead of comparing against the 1969-12-31 epoch rendering. No legitimate market timestamp is at or before the epoch.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.