Documentation ¶
Overview ¶
Package amztime implements AWS specific time parsing and deviations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMalformedDate = errors.New("malformed date")
ErrMalformedDate always returned for dates that cannot be parsed.
Functions ¶
func ISO8601Format ¶
ISO8601Format converts time 't' into ISO8601 time format expected in AWS S3 spec.
This function is needed to avoid a Go's float64 precision bug, where Go avoids padding the extra '0' before the timezone.
func ISO8601Parse ¶
ISO8601Parse parses ISO8601 date string
func ParseHeader ¶
ParseHeader parses http.TimeFormat with an acceptable extension for http.TimeFormat - return time might be zero if the timeStr is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.