quarter

package
v0.65.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonthToQuarter

func MonthToQuarter(month uint64) uint64

func QuarterContinuousIsQuarterStart added in v0.46.0

func QuarterContinuousIsQuarterStart(qc uint64) bool

func QuarterContinuousIsYearStart added in v0.46.0

func QuarterContinuousIsYearStart(qc uint64) bool

func QuarterContinuousToTime

func QuarterContinuousToTime(qc uint64) time.Time

QuarterContinuousToTime converts a continuous quarter value to a `time.Time` value.

func QuarterContinuousToYearQuarter

func QuarterContinuousToYearQuarter(qc uint64) (uint64, uint64)

QuarterContinuousToYearQuarter converts a continuous quarter value (e.g. numerof months from year 0).

func TimeToQuarterContinuous

func TimeToQuarterContinuous(t time.Time) uint64

TimeToQuarterContinuous converts a `time.Time` value to a continuous quarter.

func YearQuarterToQuarterContinuous

func YearQuarterToQuarterContinuous(year, quarter uint64) uint64

YearQuarterToQuarterContinuous converts a year and quarteer to a continuous quarter integer. This is useful when an even even spacing between months is desired, such as with charting x-axis values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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