function cmfcCalendarV1Iranian::strtotime in Calendar Systems 5
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
- 8.2 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
- 6.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
- 6 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
- 7.3 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
- 7 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
- 7.2 calendar/v1/calendarSystems/iranian.class.inc.php \cmfcCalendarV1Iranian::strtotime()
accept array,timestamp and string as input datetime in jalali or gregorian format and convert it to timestamp Implementation of PHP strtotime function
2 calls to cmfcCalendarV1Iranian::strtotime()
- cmfcCalendarV1Iranian::smartGet in calendar/
v1/ calendarSystems/ iranian.class.inc.php - @desc accept array,timestamp and string as input datetime in jalali or gregorian format
- cmfcCalendarV1Iranian::strToTimestamp in calendar/
v1/ calendarSystems/ iranian.class.inc.php
File
- calendar/
v1/ calendarSystems/ iranian.class.inc.php, line 314
Class
Code
function strtotime($value) {
foreach ($this->_dateFormats as $formatKey => $formatSample) {
$result = call_user_func(array(
&$this,
'dateFormat' . $formatKey,
), $value);
if ($result !== false) {
return $result;
}
}
return $value;
}