/** * Handle the parse request. * * @return array */ public function format() { $month = self::EnglishLookup[$this->date[0]]; // if we got Adar/Adar II, we need to determine whether it's a leap year or not if (is_array($month)) { $month = isJewishLeapYear($this->date[2]) ? $month[1] : $month[0]; } return [$this->date[1], $month, $this->date[2]]; }
/** * Handle the parse request. * * @return array */ public function format() { $day = self::dayLookup[$this->date[1]]; $month = self::monthLookup[$this->date[0]]; if (is_array($month)) { $month = isJewishLeapYear($this->date[2]) ? $month[1] : $month[0]; } $year = $this->numerology->toHebrewYear($this->date[2]); return [$day, $month, $year]; }