isSameOrBefore method

bool isSameOrBefore(
  1. Jiffy jiffy, {
  2. Unit unit = Unit.microsecond,
})

Returns a boolean value indicating whether this Jiffy instance is the same as or before the given jiffy instance.

The unit parameter specifies the unit of measurement to use when comparing the two instances. The default value is Unit.microsecond.

Implementation

bool isSameOrBefore(Jiffy jiffy, {Unit unit = Unit.microsecond}) {
  return _query.isSameOrBefore(
      dateTime, jiffy.dateTime, unit, _locale.startOfWeek());
}