Lines Matching +full:- +full:- +full:format

14  * Format used by Google, Sqlite and others
36 'Y-m-d H:i:sP',
37 'Y-m-d H:i:s',
38 'Y-m-d H:i',
39 'Y-m-d H',
40 'Y-m-d',
52 $this->dateTime = new DateTime();
56 $this->dateTime = $dateTime;
65 * @throws ExceptionBadSyntax if the format is not supported
76 * (ie only YYYY-MM-DD)
81 * because {@link DateTime::createFromFormat} with a format of
82 * Y-m-d will be using the actual time otherwise
97 * because {@link DateTime::createFromFormat} with a format of
98 * Y-m-d will be using the actual time otherwise
107 * because {@link DateTime::createFromFormat} with a format of
108 * Y-m-d will be using the actual time otherwise
129 …$message = "The date string ($original) is not in a valid date format. (" . join(", ", self::VALID…
139 $dateTime->setTimestamp($timestamp);
145 * because it's not the compliant IS0-8601 format
150 * This format is used by Sqlite, Google and is pretty the standard everywhere
151 * https://www.w3.org/TR/NOTE-datetime
165 return $dateObject->isValidDateEntry(); // ??? Validation seems to be at construction
173 if ($this->dateTime !== false) {
224 return $this->dateTime;
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()}
239 * Format only in English
242 * @link https://php.net/manual/en/datetime.format.php
244 public function format($string): string function in ComboStrap\\Iso8601Date
246 return $this->getDateTime()->format($string);
251 return $this->__toString();
263 * https://www.php.net/manual/en/intldateformatter.format.php
266 * ICU Date formatter: https://unicode-org.github.io/icu-docs/#/icu4c/udat_8h.html
267 …* ICU Date formats: https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-fo…
268 * ICU User Guide: https://unicode-org.github.io/icu/userguide/
269 …* ICU Formatting Dates and Times: https://unicode-org.github.io/icu/userguide/format_parse/datetim…
272format ($pattern) is no more supported. Why ? Because Php has deprecated <a href=\"https://www.php…
273 return strftime($pattern, $this->dateTime->getTimestamp());
278 * are used to format date with the locale
280 …* Doc: https://unicode-org.github.io/icu/userguide/format_parse/datetime/#producing-normal-date-fo…
309 $this->dateTime->getTimezone(),
314 $formatted = datefmt_format($intlDateFormatter, $this->dateTime);
323 $this->dateTime->getTimezone(),
327 $formatted = datefmt_format($intlDateFormatter, $this->dateTime);
336 …throw new ExceptionBadSyntax("Unable to format the date with the pattern ($pattern) and locale ($l…
344 $internalMs = DataType::toMilliSeconds($this->dateTime);
356 // $seconds = $diff->format('%s');
357 return $this->dateTime->diff($rightTime, true);