time

package
v2.0.14 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 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 ParseDateFromString

func ParseDateFromString(value string) (Date, error)

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

func (Date) Validate added in v2.0.2

func (d Date) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

type Time

type Time null.Time

func NullTime

func NullTime(t time.Time) Time

func ParseNullTimeFromString

func ParseNullTimeFromString(value string) (t Time, err error)

func (Time) MarshalJSON

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

func (Time) MarshalXML

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

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalJSON

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

func (*Time) UnmarshalXML

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

func (Time) Validate added in v2.0.2

func (t Time) Validate() (err error)

Validate implementation of ozzo-validation Validate interface

Jump to

Keyboard shortcuts

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