You are here

function cmfcCalendarV1Arabic::valueToTimeStamp in Calendar Systems 7

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
  2. 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
  3. 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
  4. 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
  5. 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::valueToTimeStamp()
  6. 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 542

Class

cmfcCalendarV1Arabic

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