DateTimeFormat class

A utility class for formatting DateTimes.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

format(DateTime dateTime, {String format: DateTimeFormats.iso8601}) String
Formats dateTime according to the notation format. [...]
relative(DateTime dateTime, {DateTime relativeTo, Duration formatAfter, String format: AmericanDateTimeFormats.abbrWithComma, bool abbr: false, bool round: true, int levelOfPrecision: 0, UnitOfTime minUnitOfTime: UnitOfTime.second, UnitOfTime maxUnitOfTime: UnitOfTime.year, bool excludeWeeks: false, String ifNow, String prependIfBefore, String appendIfAfter}) String
Formats dateTime to a human-readable relative time format. [...]