timeutil

package
v0.0.0-...-19239a5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: EUPL-1.2 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateLayoutISO     = "2006-01-02"
	D16bDateLayout    = "20060102"
	DateTimeLayoutISO = "2006-01-02T15:04:05.999-07:00"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	time.Time
}

func ParseDate

func ParseDate(s, format string) (*Date, error)

func (*Date) AppendValue

func (d *Date) AppendValue(b []byte, flags int) ([]byte, error)

func (*Date) MarshalJSON

func (d *Date) MarshalJSON() ([]byte, error)

func (*Date) ScanValue

func (d *Date) ScanValue(rd types.Reader, n int) (err error)

func (*Date) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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