date

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC3339 = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	// contains filtered or unexported fields
}

Date represents a date without a time or timezone

func New

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

func Parse

func Parse(layout string, value string) (Date, error)

func Today

func Today() Date

Today gets current day

func (Date) MarshalJSON

func (date Date) MarshalJSON() ([]byte, error)

func (Date) String

func (date Date) String() string

func (Date) Time

func (date Date) Time() time.Time

func (*Date) UnmarshalJSON

func (date *Date) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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