localdate

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalDate

type LocalDate time.Time

func New

func New(year int, month time.Month, day int) LocalDate

func Now added in v1.0.12

func Now() LocalDate

func Parse added in v1.0.12

func Parse(iso string) (LocalDate, error)

func (LocalDate) Equals

func (d LocalDate) Equals(o LocalDate) bool

func (LocalDate) GetDay

func (d LocalDate) GetDay() int

func (LocalDate) GetMonth

func (d LocalDate) GetMonth() time.Month

func (LocalDate) GetYear

func (d LocalDate) GetYear() int

func (LocalDate) IsBefore

func (d LocalDate) IsBefore(o LocalDate) bool

func (LocalDate) MarshalJSON added in v1.0.12

func (d LocalDate) MarshalJSON() ([]byte, error)

func (LocalDate) MinusDays

func (d LocalDate) MinusDays(days int) LocalDate

func (LocalDate) MinusMonths

func (d LocalDate) MinusMonths(months int) LocalDate

func (LocalDate) PlusDays

func (d LocalDate) PlusDays(days int) LocalDate

func (LocalDate) PlusMonths

func (d LocalDate) PlusMonths(months int) LocalDate

func (LocalDate) PlusYears

func (d LocalDate) PlusYears(years int) LocalDate

func (LocalDate) String

func (d LocalDate) String() string

func (LocalDate) ToString added in v1.0.12

func (d LocalDate) ToString() gocommon.String

func (*LocalDate) UnmarshalJSON added in v1.0.12

func (d *LocalDate) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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