utils/timeago library
Functions
-
format(
DateTime date, {String locale, DateTime clock, bool allowFromNow}) → String -
Formats provided
date
to a fuzzy time like 'a moment ago' -
setLocaleMessages(
String locale, LookupMessages lookupMessages) → void -
Sets a
locale
with the providedlookupMessages
to be available when using the format function.