common/utils/import_lib_util_time library
Classes
- EnMessages
- English Messages
- EnShortMessages
- English short Messages
- ViMessages
- Vietnamese messages
- ViShortMessages
- Vietnamese short messages
Functions
-
format(
DateTime date, {String? locale, DateTime? clock, bool allowFromNow = false}) → String -
Formats provided
date
to a fuzzy time like 'a moment ago' -
setDefaultLocale(
String locale) → void -
Sets the default
locale
. By default it isen
. -
setLocaleMessages(
String locale, LookupMessages lookupMessages) → void -
Sets a
locale
with the providedlookupMessages
to be available when using the format function.