from method

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

Returns the string of relative time from day.

The second param is optional, by set withoutSuffix to true, it will remove the suffix(ago).

Implementation

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