public formatDateTime ( DateTimeInterface $dateTime, |
||
$dateTime | DateTimeInterface | PHP object representing particular point in time |
$locale | ||
$formatLength | string | One of DatesReader FORMAT_LENGTH constants |
리턴 | string | Formatted date and time |
public function formatDateTime(\DateTimeInterface $dateTime, Locale $locale, $formatLength = DatesReader::FORMAT_LENGTH_DEFAULT)
{
DatesReader::validateFormatLength($formatLength);
return $this->doFormattingWithParsedFormat($dateTime, $this->datesReader->parseFormatFromCldr($locale, DatesReader::FORMAT_TYPE_DATETIME, $formatLength), $this->datesReader->getLocalizedLiteralsForLocale($locale));
}