You are here

function cmfcCalendarV1Julian::dateFormatArraySimple in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/julian.class.inc.php \cmfcCalendarV1Julian::dateFormatArraySimple()
  2. 7 calendar/v1/calendarSystems/julian.class.inc.php \cmfcCalendarV1Julian::dateFormatArraySimple()
  3. 7.2 calendar/v1/calendarSystems/julian.class.inc.php \cmfcCalendarV1Julian::dateFormatArraySimple()

File

calendar/v1/calendarSystems/julian.class.inc.php, line 334

Class

cmfcCalendarV1Julian

Code

function dateFormatArraySimple($value) {
  if (is_array($value)) {
    if (isset($value[0])) {
      $y = $value['0'];
      $m = $value['1'];
      $d = $value['2'];
      $h = $value['3'];
      $i = $value['4'];
      $s = $value['5'];
    }
    elseif (isset($value['year'])) {
      $y = $value['year'];
      $m = $value['month'];
      $d = $value['day'];
      $h = $value['hour'];
      $i = $value['minute'];
      $s = $value['second'];
    }
    elseif (isset($value['y'])) {
      $y = $value['y'];
      $m = $value['m'];
      $d = $value['d'];
      $h = $value['h'];
      $i = $value['i'];
      $s = $value['s'];
    }
    return $this
      ->valueToTimeStamp($y, $m, $d, $h, $i, $s);
  }
  return false;
}