Lines Matching full:format
9 * Format a date
15 public const FORMAT_ATTRIBUTE = "format";
26 * @param string $format
31 …public static function formatDateString(string $date, string $format = DateTag::DEFAULT_FORMAT, st… argument
34 …// To format dates in other languages, you should use the setlocale() and strftime() functions ins…
60 …$derivedLocale) is not available as locale on the server. You can't then format the value ($date) …
66 $formatted = strftime($format, $timeStamp);
71 …throw new ExceptionBadSyntax("Unable to format the date ($date) with the format ($format) and lang…
96 * The format
98 $format = $tagAttributes->getValue(DateTag::FORMAT_ATTRIBUTE, DateTag::DEFAULT_FORMAT);
105 return DateTag::formatDateString($date, $format, $lang);