DateTimeFormatter class

Formats dates and times.

Implemented types

Constructors

DateTimeFormatter.createDateTimeFormatter(String formatTemplate)
factory
DateTimeFormatter.createDateTimeFormatterContext(String formatTemplate, IIterable<String>? languages, String geographicRegion, String calendar, String clock)
factory
DateTimeFormatter.createDateTimeFormatterDate(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat)
factory
DateTimeFormatter.createDateTimeFormatterDateTimeContext(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IIterable<String>? languages, String geographicRegion, String calendar, String clock)
factory
DateTimeFormatter.createDateTimeFormatterDateTimeLanguages(YearFormat yearFormat, MonthFormat monthFormat, DayFormat dayFormat, DayOfWeekFormat dayOfWeekFormat, HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat, IIterable<String>? languages)
factory
DateTimeFormatter.createDateTimeFormatterLanguages(String formatTemplate, IIterable<String>? languages)
factory
DateTimeFormatter.createDateTimeFormatterTime(HourFormat hourFormat, MinuteFormat minuteFormat, SecondFormat secondFormat)
factory
DateTimeFormatter.fromPtr(Pointer<COMObject> ptr)

Properties

calendar String
no setteroverride
clock String
no setteroverride
geographicRegion String
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
includeDay DayFormat
no setteroverride
includeDayOfWeek DayOfWeekFormat
no setteroverride
includeHour HourFormat
no setteroverride
includeMinute MinuteFormat
no setteroverride
includeMonth MonthFormat
no setteroverride
includeSecond SecondFormat
no setteroverride
includeYear YearFormat
no setteroverride
languages List<String>?
no setteroverride
numeralSystem String
getter/setter pairoverride
patterns List<String>?
no setteroverride
ptr Pointer<COMObject>
getter/setter pairinherited
resolvedGeographicRegion String
no setteroverride
resolvedLanguage String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
template String
no setteroverride

Methods

addRef() int
Increments the reference count for an interface pointer to a COM object.
inherited
detach() → void
Detaches the object from the Finalizer.
inherited
format(DateTime value) String
override
formatUsingTimeZone(DateTime datetime, String timeZoneId) String
override
getIids(Pointer<Uint32> iidCount, Pointer<Pointer<GUID>> iids) int
inherited
getRuntimeClassName(Pointer<IntPtr> className) int
inherited
getTrustLevel(Pointer<Int32> trustLevel) int
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryInterface(Pointer<GUID> riid, Pointer<Pointer<NativeType>> ppvObject) int
Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID).
inherited
release() int
Decrements the reference count for an interface on a COM object.
inherited
toInterface(String iid) Pointer<COMObject>
Cast an existing COM object to a specified interface.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

longDate DateTimeFormatter?
no setter
longTime DateTimeFormatter?
no setter
shortDate DateTimeFormatter?
no setter
shortTime DateTimeFormatter?
no setter