function cmfcCalendarV1Arabic::valueToTimeStamp in Calendar Systems 6
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
- 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
- 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
- 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
- 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
- 7.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
Parameters
$y:
$m:
$d:
$h:
$i:
$s:
Return value
unknown_type
2 calls to cmfcCalendarV1Arabic::valueToTimeStamp()
- cmfcCalendarV1Arabic::dateFormatArraySimple in calendar/
v1/ calendarSystems/ arabic.class.inc.php - cmfcCalendarV1Arabic::dateFormatRfc10 in calendar/
v1/ calendarSystems/ arabic.class.inc.php
File
- calendar/
v1/ calendarSystems/ arabic.class.inc.php, line 535
Class
Code
function valueToTimeStamp($y, $m, $d, $h, $i, $s) {
$y = intval(strval($y));
$m = intval(strval($m));
$d = intval(strval($d));
$h = intval(strval($h));
$i = intval(strval($i));
$s = intval(strval($s));
if ($y < 1900) {
list($y, $m, $d) = $this
->toGregorian($y, $m, $d);
}
if (!empty($h) or $h != 0) {
$value = strtotime("{$y}-{$m}-{$d} {$h}:{$i}:{$s}");
}
else {
$value = strtotime("{$y}-{$m}-{$d}");
}
return $value;
}