Documentation ¶
Overview ¶
A simple relative and natural time package
A simple relative and natural time package
Index ¶
Constants ¶
View Source
const ( Today naturalAdjective = "today" Yesterday naturalAdjective = "yesterday" This naturalAdjective = "this" Current naturalAdjective = "current" Previous naturalAdjective = "previous" Last naturalAdjective = "last" )
View Source
const ( Year relativeUnit = "y" Month relativeUnit = "mon" Week relativeUnit = "w" Day relativeUnit = "d" Hour relativeUnit = "h" Minute relativeUnit = "m" Second relativeUnit = "s" )
Variables ¶
This section is empty.
Functions ¶
func ParseNatural ¶
Parse the string representation of a Lacework natural time
start, end, err := lwtime.ParseNatural("this year")
if err != nil { ... }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.