function getDateTimeFormat() { if ($this->dateTimeFormat === null) { $calendar = $this->getCalendar(); $info = $this->findInfo("calendar/{$calendar}", true); $this->setDateTimeFormat(new DateTimeFormatInfo($info)); } return $this->dateTimeFormat; }
/** * @return DateTimeFormatInfo date time format information for the current culture. */ protected function getLocalizedCalendarInfo() { //expensive operations $culture = $this->getCurrentCulture(); $info = new CultureInfo($culture); return $info->getDateTimeFormat(); }