public function formatTime(\DateTimeInterface $time, Locale $locale, $formatLength = DatesReader::FORMAT_LENGTH_DEFAULT)
    {
        DatesReader::validateFormatLength($formatLength);
        return $this->doFormattingWithParsedFormat($time, $this->datesReader->parseFormatFromCldr($locale, DatesReader::FORMAT_TYPE_TIME, $formatLength), $this->datesReader->getLocalizedLiteralsForLocale($locale));
    }
public function formatTime(\DateTimeInterface $time, Locale $locale, $formatLength = DatesReader::FORMAT_LENGTH_DEFAULT)
    {
        DatesReader::validateFormatLength($formatLength);
        return $this->doFormattingWithParsedFormat($time, $this->datesReader->parseFormatFromCldr($locale, DatesReader::FORMAT_TYPE_TIME, $formatLength), $this->datesReader->getLocalizedLiteralsForLocale($locale));
    }
public function formatTime ( \ DateTimeInterface $ time , Locale $ locale , $ formatLength = DatesReader :: FORMAT_LENGTH_DEFAULT ) { DatesReader :: validateFormatLength ( $ formatLength ) ; return $ this -> doFormattingWithParsedFormat ( $ time , $ this -> datesReader -> parseFormatFromCldr ( $ locale , DatesReader :: FORMAT_TYPE_TIME , $ formatLength ) , $ this -> datesReader -> getLocalizedLiteralsForLocale ( $ locale ) ) ; }
Formats time with format string for time defined in CLDR for particular
locale.

@param \DateTimeInterface $time PHP object representing particular point in time
@param Locale $locale
@param string $formatLength One of DatesReader FORMAT_LENGTH constants
@return string Formatted time
@api
Formats time with format string for time defined in CLDR for particular locale .