Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParseFormatted = errors.New("failed to convert string to time")
ErrParseFormatted is used when parsing the formatted string failed.
Functions ¶
func ParseFormatted ¶
ParseFormatted takes a human readable time string and returns Go's default time type. Example input: "Mon, 02 Jan 2006 15:04:05 MST".
func ParseTimestamp ¶
ParseTimestamp takes a timestamp of the given unit and returns Go's default time type.
Types ¶
Click to show internal directories.
Click to hide internal directories.