You are here

function event_same_day in Event 5.2

Are two dates on the same day?

Parameters

$date_1 The first date array:

$date_2 The second date array:

Return value

TRUE or FALSE

Related topics

1 call to event_same_day()
event_calendar_data in ./event.module
Returns an array of nodes that occur on a given date. Handles content type and taxonomy filters.

File

./event.module, line 1488

Code

function event_same_day($date_1, $date_2) {
  return $date_1['year'] == $date_2['year'] && $date_1['month'] == $date_2['month'] && $date_1['day'] == $date_2['day'];
}