public parseDateAndTime ( string $dateAndTimeToParse, |
||
$dateAndTimeToParse | string | Date and time to be parsed |
$locale | ||
$formatLength | string | One of: full, long, medium, short, or 'default' in order to use default length from CLDR |
$strictMode | boolean | Work mode (strict when TRUE, lenient when FALSE) |
return | mixed | Array of parsed date and time elements, FALSE on failure |
public function parseDateAndTime($dateAndTimeToParse, I18n\Locale $locale, $formatLength = DatesReader::FORMAT_LENGTH_DEFAULT, $strictMode = true)
{
DatesReader::validateFormatLength($formatLength);
return $this->doParsingWithParsedFormat($dateAndTimeToParse, $this->datesReader->parseFormatFromCldr($locale, DatesReader::FORMAT_TYPE_DATETIME, $formatLength), $this->datesReader->getLocalizedLiteralsForLocale($locale), $strictMode);
}