DateTimeFormatBuilder class
DateTime
formatting, for example:
final date = DateTime.utc(2021, 12, 17, 4, 0, 42);
Intl(locale: Locale.parse('fr'))
.datetimeFormat(const DateTimeFormatOptions(
hour: TimeRepresentation.numeric,
hourCycle: HourCycle.h12,
dayPeriod: DayPeriod.narrow,
timeZone: 'UTC',
))
.format(date); // Output: '4 mat.'
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
d(
{DateFormatStyle? dateStyle}) → DateTimeFormatter -
m(
{DateFormatStyle? dateStyle}) → DateTimeFormatter -
md(
{DateFormatStyle? dateStyle}) → DateTimeFormatter -
mdt(
{DateFormatStyle? dateStyle, TimeFormatStyle? timeStyle}) → DateTimeFormatter -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
t(
{TimeFormatStyle? style}) → DateTimeFormatter -
toString(
) → String -
A string representation of this object.
inherited
-
y(
{DateFormatStyle? dateStyle}) → DateTimeFormatter -
ymd(
{DateFormatStyle? dateStyle}) → DateTimeFormatter -
ymde(
{DateFormatStyle? dateStyle}) → DateTimeFormatter -
ymdet(
{DateFormatStyle? dateStyle, TimeFormatStyle? timeStyle}) → DateTimeFormatter -
ymdt(
{DateFormatStyle? dateStyle, TimeFormatStyle? timeStyle}) → DateTimeFormatter
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited