You are here

function cmfcCalendarV1Arabic::dateFormatRfc10 in Calendar Systems 6.3

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::dateFormatRfc10()
  2. 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::dateFormatRfc10()
  3. 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::dateFormatRfc10()
  4. 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::dateFormatRfc10()
  5. 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::dateFormatRfc10()
  6. 7.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::dateFormatRfc10()

File

calendar/v1/calendarSystems/arabic.class.inc.php, line 377

Class

cmfcCalendarV1Arabic

Code

function dateFormatRfc10($value) {
  if (is_string($value)) {
    if (preg_match('/^([0-9]{2,4})[-\\/\\\\]([0-9]{1,2})[-\\/\\\\]([0-9]{1,2})( +([0-9]{1,2})[:]([0-9]{1,2})[:]([0-9]{1,2}))?/', $value, $regs)) {
      $y = $regs['1'];
      $m = $regs['2'];
      $d = $regs['3'];
      $h = $regs['5'];
      $i = $regs['6'];
      $s = $regs['7'];
    }
    return $this
      ->valueToTimeStamp($y, $m, $d, $h, $i, $s);
  }
  return false;
}