RelativeDateTimeController class
A controller class to calculate which time unit is the closest to the canceled difference of the provided DateTime objects.
Constructors
- RelativeDateTimeController(DateTime dateTime, DateTime other)
-
Creates a RelativeDateTimeController.
const
Properties
Methods
-
calculateTimeDifference(
) → TimeDifference - Calculates the difference in time and returns a TimeDifference containing the final result including its time unit.
-
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