mixinafReflux::LocaleFormat

afReflux::LocaleFormat

@Js

(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#)
}
date

Source

virtual Str date(Date? date)

Defaults to Date.tolocale().

dateTime

Source

virtual Str dateTime(DateTime? dateTime)

Defaults to DateTime.tolocale().

fileSize

Source

virtual Str fileSize(Int? bytes)

Defaults to Int.tolocale("B").

time

Source

virtual Str time(Time? time)

Defaults to Time.tolocale().