public parseDatetimeWithCustomPattern ( string $datetimeToParse, string $format, |
||
$datetimeToParse | string | Date/time to be parsed |
$format | string | Format string |
$locale | A locale used for finding literals array | |
$strictMode | boolean | Work mode (strict when TRUE, lenient when FALSE) |
return | mixed | Array of parsed date / time elements, FALSE on failure |
public function parseDatetimeWithCustomPattern($datetimeToParse, $format, I18n\Locale $locale, $strictMode = true)
{
return $this->doParsingWithParsedFormat($datetimeToParse, $this->datesReader->parseCustomFormat($format), $this->datesReader->getLocalizedLiteralsForLocale($locale), $strictMode);
}