Documentation ¶
Overview ¶
A small helper to parse time to nasdaq Stockholm time, and guess open times
Index ¶
- Constants
- func MillisToDayString(millis int64) string
- func MillisToString(millis int64) string
- func ParseDate(dateStr string) (time.Time, error)
- type OmxTime
- func (ot *OmxTime) Init(dte time.Time) *OmxTime
- func (ot *OmxTime) IsToday(millis int64) bool
- func (ot *OmxTime) IsTrading(timeMillis int64) bool
- func (ot *OmxTime) NextTradingDay() *OmxTime
- func (ot *OmxTime) PrevTradingDay() *OmxTime
- func (ot *OmxTime) TimeSlot(timeMillis int64, scaleMillis int64) (idx int64)
Constants ¶
View Source
const ( MinuteX1 = 60000 MinuteX3 = MinuteX1 * 3 MinuteX5 = MinuteX1 * 5 MinuteX10 = MinuteX1 * 10 MinuteX15 = MinuteX1 * 15 )
Variables ¶
This section is empty.
Functions ¶
func MillisToDayString ¶
func MillisToString ¶
Types ¶
type OmxTime ¶
func NewOmxTimeDate ¶
func NewOmxTimeMillis ¶
func NewOmxTimeNow ¶
func NewOmxTimeNow() *OmxTime
func (*OmxTime) NextTradingDay ¶
func (*OmxTime) PrevTradingDay ¶
Click to show internal directories.
Click to hide internal directories.