mixinafReflux::LocaleFormat
afReflux::LocaleFormat
(Service) - Subclass to customise how dates and numbers are displayed in Reflux.
Override the default implementation with your own. In your AppModule:
static Void defineServices(ServiceDefinitions defs) {
defs.overrideByType(LocaleFormat#).withImpl(MyLocaleFormatImpl#)
}- formatDate
virtual Str formatDate(Date? date)Defaults to
Date.tolocale().- formatDateTime
virtual Str formatDateTime(DateTime? dateTime)Defaults to
DateTime.tolocale().- formatFileSize
virtual Str formatFileSize(Int? bytes)Defaults to
Int.tolocale("B").- formatTime
virtual Str formatTime(Time? time)Defaults to
Time.tolocale().