helpers

package
v0.0.0-...-975d13b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YearToDate

func YearToDate(year int) time.Time

Types

type DateHelper

type DateHelper struct {
	Years      [8]int
	Days       [31]int
	Months     []string
	YearIndex  int
	MonthIndex int
	DayIndex   int
}

Index are 1-based

func (*DateHelper) Init

func (dh *DateHelper) Init()

func (*DateHelper) SetDate

func (dh *DateHelper) SetDate(date time.Time)

func (*DateHelper) SetYear

func (dh *DateHelper) SetYear(year int)

func (*DateHelper) Year

func (dh *DateHelper) Year() int

Jump to

Keyboard shortcuts

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