DateTimeIntlTimeDisplayExtensions extension
Locale-correct clock renderings. locale is an intl locale string (e.g.
'en_US', 'fr_FR'); null lets intl use its default.
- on
Methods
-
makeDisplayTime(
{bool showSeconds = false, bool? showAMPM, bool? hour24, bool omitZeroMinutes = true, String? locale}) → String? -
Available on DateTime, provided by the DateTimeIntlTimeDisplayExtensions extension
Display time like3:30 PM/15:30(locale clock), or hour-only when minutes are zero. -
utcTimeDisplay(
UtcTimeDisplayEnum type, {String? locale}) → String -
Available on DateTime, provided by the DateTimeIntlTimeDisplayExtensions extension
Fixed-form clock display selected bytype(see UtcTimeDisplayEnum).