Lines Matching defs:format

65      * @throws ExceptionBadSyntax if the format is not supported
81 * because {@link DateTime::createFromFormat} with a format of
97 * because {@link DateTime::createFromFormat} with a format of
107 * because {@link DateTime::createFromFormat} with a format of
129 $message = "The date string ($original) is not in a valid date format. (" . join(", ", self::VALID_FORMATS) . ")";
145 * because it's not the compliant IS0-8601 format
150 * This format is used by Sqlite, Google and is pretty the standard everywhere
229 return $this->getDateTime()->format(self::getFormat());
234 return $this->getDateTime()->format("Y-m-d\TH:i:s.u");
238 * Shortcut to {@link DateTime::format()}
242 * @link https://php.net/manual/en/datetime.format.php
244 public function format($string): string
246 return $this->getDateTime()->format($string);
264 * https://www.php.net/manual/en/intldateformatter.format.php
268 * ICU Date formats: https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax
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);
279 * are used to format date with the locale
320 throw new ExceptionBadSyntax("Unable to format the date with the pattern ($pattern) and locale ($locale)");
340 // $seconds = $diff->format('%s');