function cmfcCalendarV1::countDown in Calendar Systems 5
Same name and namespace in other branches
- 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
- 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
- 6.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
- 6 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
- 7.3 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
- 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::countDown()
- 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 97 
Class
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;
}