time

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date null.Time

func DateFromTime

func DateFromTime(t time.Time) Date

func (Date) MarshalJSON

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

func (Date) MarshalXML

func (d Date) MarshalXML(decoder *xml.Encoder, element xml.StartElement) error

func (Date) String

func (d Date) String() string

func (*Date) UnmarshalJSON

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

func (*Date) UnmarshalXML

func (d *Date) UnmarshalXML(decoder *xml.Decoder, element xml.StartElement) error

type Time added in v1.0.15

type Time null.Time

func NullTime added in v1.0.15

func NullTime(t time.Time) Time

func (Time) MarshalJSON added in v1.0.15

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalXML added in v1.0.15

func (t Time) MarshalXML(decoder *xml.Encoder, element xml.StartElement) error

func (Time) String added in v1.0.15

func (t Time) String() string

func (*Time) UnmarshalJSON added in v1.0.15

func (t *Time) UnmarshalJSON(data []byte) error

func (*Time) UnmarshalXML added in v1.0.15

func (t *Time) UnmarshalXML(decoder *xml.Decoder, element xml.StartElement) error

Jump to

Keyboard shortcuts

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