time

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISOTimeFormat     = "15:04:05"
	ISODateFormat     = "2006-01-02"
	ISODatetimeFormat = "2006-01-02T15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISODate

type ISODate time.Time

func (ISODate) MarshalJSON

func (id ISODate) MarshalJSON() ([]byte, error)

func (ISODate) MarshalYAML

func (id ISODate) MarshalYAML() (interface{}, error)

func (*ISODate) UnmarshalJSON

func (id *ISODate) UnmarshalJSON(data []byte) error

func (*ISODate) UnmarshalYAML

func (id *ISODate) UnmarshalYAML(unmarshal func(interface{}) error) error

type ISODatetime

type ISODatetime time.Time

func (*ISODatetime) EqualTo

func (it *ISODatetime) EqualTo(other time.Time) bool

func (ISODatetime) MarshalJSON

func (idt ISODatetime) MarshalJSON() ([]byte, error)

func (ISODatetime) MarshalYAML

func (idt ISODatetime) MarshalYAML() (interface{}, error)

func (*ISODatetime) UnmarshalJSON

func (idt *ISODatetime) UnmarshalJSON(data []byte) error

func (*ISODatetime) UnmarshalYAML

func (idt *ISODatetime) UnmarshalYAML(unmarshal func(interface{}) error) error

type ISOTime

type ISOTime time.Time

func (ISOTime) MarshalJSON

func (it ISOTime) MarshalJSON() ([]byte, error)

func (ISOTime) MarshalYAML

func (it ISOTime) MarshalYAML() (interface{}, error)

func (*ISOTime) UnmarshalJSON

func (it *ISOTime) UnmarshalJSON(data []byte) error

func (*ISOTime) UnmarshalYAML

func (it *ISOTime) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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