DateTimeIntlDisplayExtensions extension

Locale-correct DateTime display: UTC offset and explicit-pattern formatting. locale throughout is an intl locale string (e.g. 'en_US', 'fr_FR'); null lets intl use its default.

on

Methods

getUtcOffset({bool verbose = false}) String?

Available on DateTime, provided by the DateTimeIntlDisplayExtensions extension

UTC offset for this DateTime as UTC+H:MM / UTC-H / UTC±0.
toDateFormat(String format, {String? locale, bool showLogTimeMilliseconds = false}) String

Available on DateTime, provided by the DateTimeIntlDisplayExtensions extension

Formats this DateTime with an explicit intl format pattern.