You are here

function cmfcCalendarV1Thai::makeTime in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::makeTime()
  2. 7 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::makeTime()
  3. 7.2 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::makeTime()

Overrides cmfcCalendarV1Plugin::makeTime

File

calendar/v1/calendarSystems/thai.class.inc.php, line 192

Class

cmfcCalendarV1Thai

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 = parent::mktime($hour, $minute, $second, $month, $day, $year);
  return $i;
}