date

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IntervalbyHours time.Duration = 24
	DateFormat      string        = "2006-01-02"
)

Variables

This section is empty.

Functions

func Decrement

func Decrement(start string, end string, fn func(string)) error

func Increment

func Increment(start string, end string, fn func(string)) error

Types

type Duration

type Duration struct {
	Date time.Time
}

func (*Duration) Decrement

func (d *Duration) Decrement(hour time.Duration)

func (*Duration) GreaterThanDate

func (d *Duration) GreaterThanDate(start string, end string) bool

func (*Duration) Increment

func (d *Duration) Increment(hour time.Duration)

func (*Duration) LessThanDate

func (d *Duration) LessThanDate(start string, end string) bool

func (*Duration) Parse

func (d *Duration) Parse(date string) (err error)

func (*Duration) ToDate

func (d *Duration) ToDate() string

func (*Duration) ValidDate

func (d *Duration) ValidDate(date string) bool

Jump to

Keyboard shortcuts

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