isSameWeek method

bool isSameWeek(
  1. Hora other, {
  2. WeekConfig config = WeekConfig.iso,
})

Whether this date is in the same week as other.

Implementation

bool isSameWeek(Hora other, {WeekConfig config = WeekConfig.iso}) {
  _validateWeekConfig(config);
  return _weekYear(config) == other._weekYear(config) &&
      _weekOfYear(config) == other._weekOfYear(config);
}