function cmfcCalendarV1Arabic::infoArrayToTimestamp in Calendar Systems 7
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::infoArrayToTimestamp()
- 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::infoArrayToTimestamp()
- 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::infoArrayToTimestamp()
- 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::infoArrayToTimestamp()
- 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::infoArrayToTimestamp()
- 7.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::infoArrayToTimestamp()
* Islamic Calendar *
Overrides cmfcCalendarV1::infoArrayToTimestamp
See also
v1/cmfcCalendarV1#infoArrayToTimestamp()
1 call to cmfcCalendarV1Arabic::infoArrayToTimestamp()
- cmfcCalendarV1Arabic::timestampToInfoArray in calendar/
v1/ calendarSystems/ arabic.class.inc.php
File
- calendar/
v1/ calendarSystems/ arabic.class.inc.php, line 128
Class
Code
function infoArrayToTimestamp($arr) {
list($gy, $gm, $gd) = $this
->toGregorian($arr['year'], $arr['month'], $arr['day']);
if (!isset($arr['hour'])) {
$arr['hour'] = $this
->phpDate('H');
}
if (!isset($arr['minute'])) {
$arr['minute'] = $this
->phpDate('i');
}
if (!isset($arr['second'])) {
$arr['second'] = $this
->phpDate('s');
}
return strtotime("{$gy}-{$gm}-{$gd}" . ' ' . $arr['hour'] . ':' . $arr['minute'] . ':' . $arr['second']);
}