tInterval

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Interval_1m  = Interval("1m")
	Interval_5m  = Interval("5m")
	Interval_15m = Interval("15m")
	Interval_1h  = Interval("1h")
	Interval_4h  = Interval("4h")
	Interval_D   = Interval("D")
	Interval_W   = Interval("W")
	Interval_M   = Interval("M")

	Interval_DEFAULT = Interval("DEFAULT")
)

Variables

This section is empty.

Functions

func IsSameMonth

func IsSameMonth(ts1, ts2 int64) bool

Types

type Interval

type Interval string

func Get

func Get(interval string) Interval

func GetMult

func GetMult(interval string) (Interval, int)

func (Interval) ForLog

func (i Interval) ForLog() string

func (Interval) IsClosing

func (i Interval) IsClosing(ts int64) bool

func (Interval) IsDefault

func (i Interval) IsDefault() bool

func (Interval) MilliSeconds

func (i Interval) MilliSeconds() int64

func (Interval) Minutes

func (i Interval) Minutes() int64

func (Interval) Next

func (i Interval) Next(ts int64) int64

func (Interval) Prev

func (i Interval) Prev(ts int64) int64

func (Interval) Seconds

func (i Interval) Seconds() int64

func (Interval) String

func (i Interval) String() string

Jump to

Keyboard shortcuts

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