Documentation
¶
Index ¶
- func ApproximateBins(start, end time.Time, tg TimeGrain) int
- func OffsetTime(tm time.Time, tg TimeGrain, n int, tz *time.Location) time.Time
- func TimeGrainToAPI(tg TimeGrain) runtimev1.TimeGrain
- func TruncateTime(tm time.Time, tg TimeGrain, tz *time.Location, firstDay, firstMonth int) time.Time
- type TimeGrain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproximateBins ¶ added in v0.58.0
func OffsetTime ¶ added in v0.60.7
func TimeGrainToAPI ¶ added in v0.78.0
Types ¶
type TimeGrain ¶
type TimeGrain int
TimeGrain is extension of std time package with Week and Quarter added
func TimeGrainFromAPI ¶ added in v0.78.0
Click to show internal directories.
Click to hide internal directories.