Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoTimeFound indicates that no time found in the text. ErrNoTimeFound = errors.New("no time found in the text") )
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
Formatter formats time into a specific format.
func NewHumanizeFormatter ¶
func NewHumanizeFormatter() Formatter
func NewStrftimeFormatter ¶
NewStrftimeFormatter creates a new Formatter for strftime format.
func NewUnixFormatter ¶
func NewUnixFormatter() Formatter
NewUnixFormatter creates a new Formatter for unix time.
Click to show internal directories.
Click to hide internal directories.