stepper

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StepMonth represents a one month interval
	StepMonth string = "month"
	// StepWeek represents a one week interval
	StepWeek string = "week"
	// StepDay represents a one day interval
	StepDay string = "day"
	// StepHour represents a one hour interval
	StepHour string = "hour"
	// StepMinute represents a one minute interval
	StepMinute string = "minute"
)

Variables

This section is empty.

Functions

func SplitDateRange

func SplitDateRange(start, end time.Time, step string, timeReverse bool) ([][]time.Time, error)

SplitDateRange splits start-end range in a subset of ranges respecting the given step Ranges with granularity of StepMonth are aligned to 1st of each month in order to improve export efficiency at block transfer level

Types

This section is empty.

Jump to

Keyboard shortcuts

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