/**
  * Creates the time range form item which consists of an ilCombinationGUI containing two
  * customized ilDateTimeInputGUIs in the shape of an ilRoomSharingTimeInputGUI.
  */
 private function createTimeRangeFormItem()
 {
     global $ilUser;
     $time_comb = new ilCombinationInputGUI($this->lng->txt("rep_robj_xrs_time_range"), "time");
     $time_from = new ilRoomSharingTimeInputGUI("", "time_from");
     $time_from->setShowTime(true);
     $time_from->setShowDate(false);
     $time_from->setMinuteStepSize(5);
     $time_from_given = unserialize($_SESSION["form_searchform"]["time_from"]);
     $time_to_given = unserialize($_SESSION["form_searchform"]["time_to"]);
     //		if (!$this->isNoTimeSet($time_from_given['time'])) {
     $current_date_time_array = $this->getCurrentTime();
     $time_from_given['time'] = $current_date_time_array['time']['from'];
     $time_to_given['time'] = $current_date_time_array['time']['to'];
     $time_from_given['date'] = $current_date_time_array['date']['from'];
     $time_to_given['date'] = $current_date_time_array['date']['to'];
     //		}
     if (!empty($time_from_given['date']) && !empty($time_from_given['time'])) {
         $time_from->setDate(new ilDate($time_from_given['date'] . ' ' . $time_from_given['time'], IL_CAL_DATETIME, $ilUser->getTimeZone()));
     }
     $time_comb->addCombinationItem("time_from", $time_from, $this->lng->txt("rep_robj_xrs_between"));
     $time_to = new ilRoomSharingTimeInputGUI("", "time_to");
     $time_to->setShowTime(true);
     $time_to->setShowDate(false);
     $time_to->setMinuteStepSize(5);
     if (!empty($time_to_given['date']) && !empty($time_to_given['time'])) {
         $time_to->setDate(new ilDate($time_to_given['date'] . ' ' . $time_to_given['time'], IL_CAL_DATETIME, $ilUser->getTimeZone()));
     }
     $time_comb->addCombinationItem("time_to", $time_to, $this->lng->txt("and"));
     $time_comb->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
     $time_comb->setRequired(true);
     return $time_comb;
 }