Documentation ¶
Index ¶
- func MonthToQuarter(month uint64) uint64
- func QuarterContinuousIsQuarterBegin(quarterc uint64) bool
- func QuarterContinuousIsYearBegin(quarterc uint64) bool
- func QuarterContinuousToTime(monthc uint64) time.Time
- func QuarterContinuousToYearQuarter(quarterc 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 QuarterContinuousToTime ¶
QuarterContinuousToTime converts a continuous month 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 month.
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.