timezone

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 2 Imported by: 0

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

func ToEastern(unix int64) time.Time

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.

Jump to

Keyboard shortcuts

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