/**
  * Check if the event is scheduled to current date.
  *
  * @param string $strTime Information about date and time in the following
  *                        format '2015-12-24 23:59'
  * @return boolean True if event's day, month and year are equals to
  *                 current's day, month and year; false otherwise
  */
 public static function isEventScheduledForToday($strTime)
 {
     $dtEvent = DateUtils::getInfomationAboutDate($strTime);
     return $dtEvent->dayVal === DateUtils::getCurrentDay() && $dtEvent->monthVal === DateUtils::getCurrentMonthNumber() && $dtEvent->yearVal === DateUtils::getCurrentYear();
 }
 /**
  * Checks if any time parameter was supplied , if not then the year and month
  * of the current day will be used as date range reference.
  *
  * @param StdClass $params Initial request to calendar module
  * @return StdClass An object with a month value (->monthVal) and
  *                  year value (->yearVal)
  */
 private function formatCurrentCalendarDateRange($params)
 {
     // Validating provided parameters and formats event date range
     return (object) array('monthVal' => isset($params->month) ? $params->month : DateUtils::getCurrentMonthNumber(), 'yearVal' => isset($params->year) ? $params->year : DateUtils::getCurrentYear());
 }