You are here

function cmfcCalendarV1Iranian::makeTime in Calendar Systems 6

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

File

calendar/v1/calendarSystems/iranian.class.inc.php, line 600

Class

cmfcCalendarV1Iranian

Code

function makeTime($hour = "", $minute = "", $second = "", $jmonth = "", $jday = "", $jyear = "") {
  if (!$hour && !$minute && !$second && !$jmonth && !$jmonth && !$jday && !$jyear) {
    return $this
      ->phpTime();
  }
  list($year, $month, $day) = $this
    ->toGregorian($jyear, $jmonth, $jday);
  $i = mktime($hour, $minute, $second, $month, $day, $year);
  return $i;
}