fromAD static method
Converts the difference between date
and referenceDate
in DateTime into moment string.
If referenceDate
is null, the difference between date
and the current date is converted into moment.
Implementation
static String fromAD(
DateTime date, {
DateTime? referenceDate,
bool showToday = false,
}) {
return _calc(date, referenceDate ?? DateTime.now(), showToday);
}