You are here

function cmfcCalendarV1::countDown in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  2. 5 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  3. 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  4. 6 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
  5. 7.3 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 112

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;
}