You are here

function cmfcCalendarV1Julian::strtotime in Calendar Systems 8

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

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

Overrides cmfcCalendarV1Plugin::strtotime

1 call to cmfcCalendarV1Julian::strtotime()
cmfcCalendarV1Julian::smartGet in calendar/v1/calendarSystems/julian.class.inc.php
@desc accept array,timestamp and string as input datetime in jalali or gregorian format

File

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

Class

cmfcCalendarV1Julian

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