Lines Matching full:date
9 * Format a date
14 public const CANONICAL = "variable:date";
16 public const DATE_ATTRIBUTE = "date";
17 public const TAG = "date";
25 * @param string $date
31 …public static function formatDateString(string $date, string $format = DateTag::DEFAULT_FORMAT, st… argument
33 // https://www.php.net/manual/en/function.date.php
34 …ates in other languages, you should use the setlocale() and strftime() functions instead of date().
60 … not available as locale on the server. You can't then format the value ($date) in this language."…
64 $date = syntax_plugin_combo_variable::replaceVariablesWithValuesFromContext($date);
65 $timeStamp = Iso8601Date::createFromString($date)->getDateTime()->getTimestamp();
71 …throw new ExceptionBadSyntax("Unable to format the date ($date) with the format ($format) and lang…
85 …LogUtility::warning("The date component has been deprecated for the date variable", DateTag::CANON…
100 * The date
103 … $date = $tagAttributes->getComponentAttributeValue(DateTag::DATE_ATTRIBUTE, $defaultDateTime);
105 return DateTag::formatDateString($date, $format, $lang);
107 $message = "Error while formatting a date. Error: {$e->getMessage()}";
119 $date = $call->getCapturedContent();
120 $openingTag->addAttribute(DateTag::DATE_ATTRIBUTE, $date);