time_ago_provider
library
Functions
-
format(DateTime date, {String locale = 'en', DateTime? clock, bool enableFromNow = false})
→ String
-
Formats provided
date
to a fuzzy time like '9 minutes ago'
-
formatFull(DateTime date, {String locale = 'en', DateTime? clock, bool enableFromNow = false})
→ String
-
Formats provided
date
to a full fuzzy time like '2 years, 9 months, 9 days, 6 hours, 8 minutes, 3 seconds'
-
setLocale(String locale, Language language)
→ void
-
Sets a
locale
with the provided Language to be available when
using the format function.