from method

String from(
  1. Day day, [
  2. bool withoutSuffix = false
])

Returns the string of relative time from day.

The second parameter is optional. Setting withoutSuffix to true removes the suffix (for example, "ago").

Implementation

String from(Day day, [bool withoutSuffix = false]) =>
    _relativeTimeExec(day, withoutSuffix);