Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParseNotPossible = errors.New("No layout matched given value or other error occurred")
ErrParseNotPossible describes a collected error which is returned when the given date value could not be parsed with any given layout
Functions ¶
func MultiParse ¶
MultiParse takes multiple layout strings and tries to parse the value with them. In case none of the layouts matches or another error occurs ErrParseNotPossible is returned
func MultiParseInLocation ¶
func MultiParseInLocation(layouts []string, value string, loc *gotime.Location) (gotime.Time, error)
MultiParseInLocation takes multiple layouts and tries to parse the value with them using time.ParseInLocation. In case none of the layouts matches or another error occurs ErrParseNotPossible is returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.