Format must obey syntax defined in CLDR specification, excluding
unimplemented features (see documentation for DatesReader class).
Format is remembered in this classes cache and won't be parsed again for
some time.
public formatDateTimeWithCustomPattern ( DateTimeInterface $dateTime, string $format, |
||
$dateTime | DateTimeInterface | PHP object representing particular point in time |
$format | string | Format string |
$locale | A locale used for finding literals array | |
return | string | Formatted date / time. Unimplemented subformats in format string will be silently ignored |