quarter

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 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 QuarterContinuousIsQuarterBegin

func QuarterContinuousIsQuarterBegin(quarterc uint64) bool

func QuarterContinuousIsYearBegin

func QuarterContinuousIsYearBegin(quarterc uint64) bool

func QuarterContinuousToTime

func QuarterContinuousToTime(monthc uint64) time.Time

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

func QuarterContinuousToYearQuarter

func QuarterContinuousToYearQuarter(quarterc 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 month.

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