datefilter

package
v1.6.25-test04 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormatISO8601 string = "2006-01-02"

Variables

This section is empty.

Functions

This section is empty.

Types

type DateFilter

type DateFilter struct {
	Start        time.Time
	End          time.Time
	IsStartValid bool
	IsEndValid   bool
}

DateFilter is used to filter dates

func NewDateFilter

func NewDateFilter(startDate string, endDate string) DateFilter

NewDateFilter creates new DateFilter with the start date and end date

func (DateFilter) IsPassing

func (dFilter DateFilter) IsPassing(date time.Time) bool

IsPassing tests if a specific date is passing the filter

Jump to

Keyboard shortcuts

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