Version: v0.2212.0 Latest Latest

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 3 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type ErrInvalidDateFormatTimeWithoutTZ

type ErrInvalidDateFormatTimeWithoutTZ error

ErrInvalidDateFormatTimeWithoutTZ is returned when the field cannot be parsed.

type TimeWithoutTZ

type TimeWithoutTZ time.Time

TimeWithoutTZ provides a yyyy-MM-ddThh:mm:ss date.

func (TimeWithoutTZ) MarshalJSON

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

MarshalJSON outputs JSON.

func (TimeWithoutTZ) String

func (d TimeWithoutTZ) String() string

String // String returns the time formatted using the format string


If the time has a monotonic clock reading, the returned string includes a final field "m=±<value>", where value is the monotonic clock reading formatted as a decimal number of seconds.

The returned string is meant for transformation as query param or debugging; for a stable serialized representation, use t.MarshalText, t.MarshalBinary, or t.Format with an explicit format string.

func (*TimeWithoutTZ) UnmarshalJSON

func (d *TimeWithoutTZ) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON handles incoming JSON.

Jump to

Keyboard shortcuts

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