fromBS static method

String fromBS(
  1. NepaliDateTime date, {
  2. NepaliDateTime? referenceDate,
  3. bool showToday = false,
})

Converts the difference between date and referenceDate in NepaliDateTime into moment string.

If referenceDate is null, the difference between date and the current date is converted into moment.

Implementation

static String fromBS(
  NepaliDateTime date, {
  NepaliDateTime? referenceDate,
  bool showToday = false,
}) {
  return _calc(date, referenceDate ?? NepaliDateTime.now(), showToday);
}