RelativeTime class abstract final

"in 3 days", "2 hours ago", "Yesterday" in any ChronoLocale.

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

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

Static Methods

duration(Duration d, {ChronoLocale? locale, int maxParts = 2}) → String
A short duration such as "1 hour 30 minutes".
format(DateTime date, {DateTime? now, ChronoLocale? locale, bool useDayWords = true}) → String
Describes date relative to now (the current time by default).