function cmfcCalendarV1Iranian::dateFormatRfc10 in Calendar Systems 6.3
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
- 8.2 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
- 5 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
- 6 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
- 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
- 7 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
- 7.2 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::dateFormatRfc10()
File
- calendar/
v1/ calendarSystems/ iranian.class.inc.php, line 356
Class
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;
}