Documentation ¶
Overview ¶
Package date contains logic for handling operations on datetime values.
Index ¶
Constants ¶
View Source
const DefaultFormat = "2006-01-02T15:04:05Z"
DefaultFormat is the datetime format used across the provider.
Variables ¶
View Source
var ErrDateFormat = errors.New("unable to parse date")
ErrDateFormat is returned when there is an error parsing a string date.
View Source
var ErrMarshal = errors.New("unable to marshal date")
ErrMarshal is returned when there is an error marshaling a time.Time date.
Functions ¶
func FormatRFC3339 ¶ added in v6.3.0
FormatRFC3339 returns a textual representation of time formatted according to the RFC3339 standard. RFC3339 is a subset of ISO 8601 producing the format "2006-01-02T15:04:05Z" (for a UTC time) which is commonly used in the Edge API.
func ParseFormat ¶
ParseFormat parses the given string datetime using the provided format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.