Home
last modified time | relevance | path

Searched refs:DateTimeInterface (Results 1 – 25 of 25) sorted by relevance

/PHP-8.1/ext/date/tests/
H A DDateTimeInterface_constants.phpt2 DateTimeInterface constants
7 DATE_ATOM === DateTimeInterface::ATOM,
8 DATE_COOKIE === DateTimeInterface::COOKIE,
9 DATE_ISO8601 === DateTimeInterface::ISO8601,
10 DATE_RFC822 === DateTimeInterface::RFC822,
11 DATE_RFC850 === DateTimeInterface::RFC850,
12 DATE_RFC1036 === DateTimeInterface::RFC1036,
13 DATE_RFC1123 === DateTimeInterface::RFC1123,
14 DATE_RFC2822 === DateTimeInterface::RFC2822,
16 DATE_RSS === DateTimeInterface::RSS,
[all …]
H A D68062.phpt2 DateTimeZone::getOffset() accepts a DateTimeInterface object
18 DateTimeZone::getOffset(): Argument #1 ($datetime) must be of type DateTimeInterface, int given
H A DDatePeriod_wrong_constructor.phpt18 DatePeriod::__construct() accepts (DateTimeInterface, DateInterval, int [, int]), or (DateTimeInter…
H A Dbug-gh11416.phpt26 Error: The DateTimeInterface object has not been correctly initialized by its constructor
27 Error: The DateTimeInterface object has not been correctly initialized by its constructor
H A Dtimezone_offset_get_error.phpt70 string(96) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, stdCl…
72 string(91) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, int g…
74 string(92) "timezone_offset_get(): Argument #2 ($datetime) must be of type DateTimeInterface, null …
H A Dbug-gh8471.phpt48 The DateTimeInterface object has not been correctly initialized by its constructor
50 The DateTimeInterface object has not been correctly initialized by its constructor
H A Dgh9866.phpt2 Bug GH-9866 (Time zone bug with \DateTimeInterface::diff())
H A Dbug-gh9106.phpt2 Test for bug GH-9601: DateInterval 1.5s added to DateTimeInterface is rounded down since PHP 8.1.0
H A Dbug68549-dst-transition-DateTime-setTimestamp.phpt136 … -> %d %s\n", $timezone, $timestamp, $dt->getTimestamp(), $dt->format(DateTimeInterface::ISO8601));
H A Dbug68549-dst-transition-DateTime-setTimezone.phpt136 … -> %d %s\n", $timezone, $timestamp, $dt->getTimestamp(), $dt->format(DateTimeInterface::ISO8601));
/PHP-8.1/ext/date/
H A Dphp_date.stub.php98 function date_offset_get(DateTimeInterface $object): int {}
102DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false): DateInter…
113 function date_timestamp_get(DateTimeInterface $object): int {}
189 interface DateTimeInterface interface
210 class DateTime implements DateTimeInterface
317 class DateTimeImmutable implements DateTimeInterface
414 public function getOffset(DateTimeInterface $datetime): int {}
477 * @param DateTimeInterface|string $start
479 * @param DateTimeInterface|int $end
485 public function getStartDate(): DateTimeInterface {}
[all …]
H A Dphp_date_arginfo.h92 ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
109 ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
118 ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
122 ZEND_ARG_OBJ_INFO(0, baseObject, DateTimeInterface, 0)
123 ZEND_ARG_OBJ_INFO(0, targetObject, DateTimeInterface, 0)
172 ZEND_ARG_OBJ_INFO(0, datetime, DateTimeInterface, 0)
241 ZEND_ARG_OBJ_INFO(0, targetObject, DateTimeInterface, 0)
264 ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
391 ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
402 ZEND_ARG_OBJ_INFO(0, datetime, DateTimeInterface, 0)
[all …]
H A Dphp_date.c2507 DATE_CHECK_INITIALIZED(old_obj->time, DateTimeInterface); in PHP_METHOD()
2549 DATE_CHECK_INITIALIZED(old_obj->time, DateTimeInterface); in PHP_METHOD()
3446 DATE_CHECK_INITIALIZED(dateobj1->time, DateTimeInterface); in PHP_FUNCTION()
3447 DATE_CHECK_INITIALIZED(dateobj2->time, DateTimeInterface); in PHP_FUNCTION()
3651 DATE_CHECK_INITIALIZED(dateobj->time, DateTimeInterface); in PHP_FUNCTION()
4342 DATE_CHECK_INITIALIZED(Z_PHPDATE_P(start)->time, DateTimeInterface); in PHP_METHOD()
4344 DATE_CHECK_INITIALIZED(Z_PHPDATE_P(end)->time, DateTimeInterface); in PHP_METHOD()
/PHP-8.1/tests/classes/
H A Dbug65768.phpt2 Bug #65768: date_diff accepts only DateTime instance even though docs say about DateTimeInterface
24 class cdt1 extends DateTime implements DateTimeInterface {}
26 class cdt2 extends DateTimeImmutable implements DateTimeInterface {}
28 class cdt3 implements DateTimeInterface {}
36 Fatal error: DateTimeInterface can't be implemented by user classes in %sbug65768.php on line %d
/PHP-8.1/Zend/tests/parameter_default_values/
H A Dinternal_declaration_error_false.phpt6 interface MyDateTimeInterface extends DateTimeInterface
12 …Interface::diff(): DateInterval must be compatible with DateTimeInterface::diff(DateTimeInterface
/PHP-8.1/ext/intl/dateformat/
H A Ddateformat.stub.php114 * @param IntlCalendar|DateTimeInterface|array|string|int|float $datetime
121 * @param IntlCalendar|DateTimeInterface $datetime
/PHP-8.1/ext/reflection/tests/
H A Dbug80299.phpt9 $function = function (int &$foo, DateTimeInterface &$bar) {};
/PHP-8.1/ext/opcache/tests/
H A Dbug75556.phpt11 function createFromFormat($format, $date, ?\DateTimeZone $tz = null): ?\DateTimeInterface
/PHP-8.1/ext/intl/tests/
H A Dmsgfmt_format_error5.phpt19 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted) i…
H A Ddateformat_format.phpt404 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
409 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
414 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
419 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
424 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
H A Ddateformat_format_variant2.phpt404 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
409 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
414 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
419 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
424 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
H A Ddateformat_format_variant3.phpt406 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
411 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
416 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
421 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
426 …mt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted): …
H A Ddateformat_formatObject_error.phpt32 …ct: the passed object must be an instance of either IntlCalendar or DateTimeInterface in %s on lin…
/PHP-8.1/ext/intl/
H A Dphp_intl.stub.php201 /** @param IntlCalendar|DateTimeInterface|array|string|int|float $datetime */
205 * @param IntlCalendar|DateTimeInterface $datetime
/PHP-8.1/
H A DNEWS919 . Fixed bug GH-9866 (Time zone bug with \DateTimeInterface::diff()). (Derick)
1099 . Fixed bug GH-9106: (DateInterval 1.5s added to DateTimeInterface is rounded

Completed in 50 milliseconds