You are here

function cmfcCalendarV1Arabic::strtotime in Calendar Systems 7.3

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

accept array,timestamp and string as input datetime in jalali or gregorian format and convert it to timestamp Implementation of PHP strtotime function

1 call to cmfcCalendarV1Arabic::strtotime()
cmfcCalendarV1Arabic::strToTimestamp in calendar/v1/calendarSystems/arabic.class.inc.php
* Islamic Calendar *

File

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

Class

cmfcCalendarV1Arabic

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