Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Iso3339CleanTime ¶
Iso3339CleanTime converts the given time to ISO 3339 format
func LastDayOfMonth ¶
LastDayOfMonth returns the last day of the month of the given date.
Types ¶
type Time ¶
Time is just like time.Time, except it maintains UTC and marshals to second precision only
Use .Time to access the underlying time.Time.
func NewTimeFromString ¶
NewTimeFromString parses a Time instance from a string using RFC 3339 parsing.
func (Time) MarshalJSON ¶
MarshalJSON serializes a Time instance as the underlying time.Time instance.
func (Time) RFC3339Format ¶
RFC3339Format returns the RFC 3339 string representation of the time, set at UTC (terminated in a Z), in the resolution of milliseconds
func (*Time) UnmarshalJSON ¶
UnmarshalJSON deserializes a Time instance from the JSON string representation.
Click to show internal directories.
Click to hide internal directories.