_date

package
v0.0.1-20230203-0001 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RangeDate

func RangeDate(start, end time.Time) func() time.Time

RangeDate returns a date range function over start date to end date inclusive. After the end of the range, the range function returns a zero date, date.IsZero() is true.

func RangeDateDailyFormatted

func RangeDateDailyFormatted(input DailyFormattedInput) []string

Types

type DailyFormattedCallback

type DailyFormattedCallback func(dt string) string

type DailyFormattedInput

type DailyFormattedInput struct {
	Start time.Time
	End   time.Time
	Cb    DailyFormattedCallback
}

Jump to

Keyboard shortcuts

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