public function RoomsEvent::diff in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Returns the date interval between end and start date.
Return value
bool|DateInterval The interval between the end and start date.
Overrides RoomsEventInterface::diff
1 call to RoomsEvent::diff()
- BookingEvent::formatJson in modules/
rooms_availability/ includes/ rooms_availability.booking_event.inc - Returns event in a format amenable to FullCalendar display or generally sensible JSON.
File
- includes/
rooms.event.inc, line 70
Class
Code
public function diff() {
$interval = $this->start_date
->diff($this->end_date);
return $interval;
}