isBefore method

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

Returns a boolean value indicating whether this Jiffy instance is 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 isBefore(Jiffy jiffy, {Unit unit = Unit.microsecond}) {
  return _query.isBefore(
      dateTime, jiffy.dateTime, unit, _locale.startOfWeek());
}