Lines Matching refs:pattern
257 public function formatLocale($pattern = null, $locale = null)
272 if (strpos($pattern, "%") !== false) {
273 LogUtility::warning("The date format ($pattern) is no more supported. Why ? Because Php has deprecated <a href=\"https://www.php.net/manual/en/function.strftime.php\">strftime</a>. You need to use the <a href=\"https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax\">Unicode Date Time format</a>", self::CANONICAL);
274 return strftime($pattern, $this->dateTime->getTimestamp());
280 * when the pattern is null
288 if ($pattern !== null) {
289 $normalFormat = explode(" ", $pattern);
294 $pattern = null;
310 $pattern
317 if ($pattern === null) {
318 $pattern = "";
320 throw new ExceptionBadSyntax("Unable to format the date with the pattern ($pattern) and locale ($locale)");