Documentation ¶
Overview ¶
Package time provides a set of functions to return how much time has been passed between two dates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeAgoFromNowWithString ¶
TimeAgoFromNowWithTime takes a specific layout as time format to parse the time string on end paramter to return how much time has been passed between the current time and the string representation of the time provided by user.
func TimeAgoFromNowWithTime ¶
TimeAgoFromNowWithTime takes a specific end Time value and the current Time to return how much has been passed between them.
func TimeAgoWithString ¶
TimeAgoWithString takes a specific layout as time format to parse the time string on start/end parameter to return how much time has been passed between them.
Types ¶
type DateAgoValues ¶
type DateAgoValues int
const ( SecondsAgo DateAgoValues = iota MinutesAgo HoursAgo DaysAgo WeeksAgo MonthsAgo YearsAgo )
Click to show internal directories.
Click to hide internal directories.