stepper

package
v1.83.1-cluster Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func SplitDateRange

func SplitDateRange(start, end time.Time, step string) ([][]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