You are here

function date_repeat_is_finished in Date 6

Same name and namespace in other branches
  1. 5.2 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
  2. 6.2 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
  3. 7.3 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
  4. 7 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()
  5. 7.2 date_repeat/date_repeat_calc.inc \date_repeat_is_finished()

Stop when $current_day is greater than $end_date or $count is reached.

1 call to date_repeat_is_finished()
_date_repeat_calc in date_repeat/date_repeat_calc.inc
Private implementation of date_repeat_calc().

File

date_repeat/date_repeat_calc.inc, line 402
Code to compute the dates that match an iCal RRULE.

Code

function date_repeat_is_finished($current_day, $days, $count, $end_date) {
  if ($count && sizeof($days) >= $count || date_format($current_day, 'U') > date_format($end_date, 'U')) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}