function appointment_calendar_daysbetween in Appointment Calendar 7
Same name and namespace in other branches
- 8 appointment_calendar.module \appointment_calendar_daysbetween()
Implements function to get days in between from and to dates.
2 calls to appointment_calendar_daysbetween()
- appointment_calendar_settings_form_submit in ./
appointment_calendar_admin_settings.inc - Implements hook_form_submit().
- appointment_calendar_settings_form_validate in ./
appointment_calendar_admin_settings.inc - Implements hook_form_validate().
File
- ./
appointment_calendar.module, line 397 - Adds Appointment calendar filtering and displays Availability.
Code
function appointment_calendar_daysbetween($start, $end) {
// Get days in between from and to dates.
$dates = array();
while ($start <= $end) {
array_push($dates, strtotime(date('Y-m-d', $start)));
$start += 86400;
}
return $dates;
}