getDateTimeFormat() 공개 메소드

Gets the DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times.
public getDateTimeFormat ( ) : DateTimeFormatInfo
리턴 DateTimeFormatInfo date time format information for the culture.
예제 #1
0
 /**
  * @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();
 }