FriendlyDateTimeFormatter class
@fileoverview Extends DateTimeFormatter to add human-friendly relative formatting for dates near the current date via an 'F' symbol.
- Inheritance
-
- Object
- DateTimeFormatter
- FriendlyDateTimeFormatter
Constructors
Properties
- absoluteFormatString ↔ String
-
getter/setter pair
- dateTime ↔ EllaDateTime
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sb ↔ StringBuffer
-
getter/setter pairinherited
Methods
-
format(
EllaDateTime dateTime, [String? formatString]) → String -
inherited
-
formatDate(
EllaDate date, [String formatString = I18N_FORMAT_DATE]) → String -
inherited
-
formatDateTime(
DateTime dateTime, [String? formatString]) → String -
inherited
-
formatField(
String formatChar, int count) → void -
override
-
formatIntoBuffer(
StringBuffer sb, EllaDateTime dateTime, [String? formatString]) → String -
inherited
-
formatTime(
EllaTime time, [String formatString = I18N_FORMAT_TIME]) → String -
inherited
-
getDefaultFormatString(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited