Documentation ¶
Index ¶
- func MonthToQuarter(month uint64) uint64
- func QuarterContinuousIsQuarterStart(qc uint64) bool
- func QuarterContinuousIsYearStart(qc uint64) bool
- func QuarterContinuousToTime(qc uint64) time.Time
- func QuarterContinuousToYearQuarter(qc uint64) (uint64, uint64)
- func TimeToQuarterContinuous(t time.Time) uint64
- func YearQuarterToQuarterContinuous(year, quarter uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonthToQuarter ¶
func QuarterContinuousIsQuarterStart ¶ added in v0.46.0
func QuarterContinuousIsYearStart ¶ added in v0.46.0
func QuarterContinuousToTime ¶
QuarterContinuousToTime converts a continuous quarter value to a `time.Time` value.
func QuarterContinuousToYearQuarter ¶
QuarterContinuousToYearQuarter converts a continuous quarter value (e.g. numerof months from year 0).
func TimeToQuarterContinuous ¶
TimeToQuarterContinuous converts a `time.Time` value to a continuous quarter.
func YearQuarterToQuarterContinuous ¶
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.
Click to show internal directories.
Click to hide internal directories.