You are here

function cmfcCalendarV1::countDown in Calendar Systems 7.3

Same name and namespace in other branches
  1. 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  2. 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  3. 5 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  4. 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  5. 6 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  6. 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  7. 7.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()

* For supporting timezone , use this class date and time functions like phpDate

File

calendar/v1/calendarV1.class.inc.php, line 99

Class

cmfcCalendarV1

Code

function countDown($infoArray) {

  //$currentDate=$this->timestampToInfoArray();
  $toTimestamp = $this
    ->infoArrayToTimestamp($infoArray);
  $fromTimestamp = $this
    ->phpTime();
  $r = $this
    ->dateTimeDiff($toTimestamp, $fromTimestamp);
  $r['toTimestamp'] = $toTimestamp;
  $r['fromTimestamp'] = $fromTimestamp;
  return $r;
}