Home
last modified time | relevance | path

Searched refs:DateTimeImmutable (Results 1 – 25 of 82) sorted by path

1234

/php-src/ext/date/
H A Dphp_date.c2669 PHP_METHOD(DateTimeImmutable, __construct) in PHP_METHOD() argument
2915 PHP_METHOD(DateTimeImmutable, __set_state) in PHP_METHOD() argument
2957 PHP_METHOD(DateTimeImmutable, __serialize) in PHP_METHOD() argument
3069 PHP_METHOD(DateTimeImmutable, __wakeup) in PHP_METHOD() argument
3372 PHP_METHOD(DateTimeImmutable, modify) in PHP_METHOD() argument
3435 PHP_METHOD(DateTimeImmutable, add) in PHP_METHOD() argument
3509 PHP_METHOD(DateTimeImmutable, sub) in PHP_METHOD() argument
3618 PHP_METHOD(DateTimeImmutable, setTimezone) in PHP_METHOD() argument
3699 PHP_METHOD(DateTimeImmutable, setTime) in PHP_METHOD() argument
3745 PHP_METHOD(DateTimeImmutable, setDate) in PHP_METHOD() argument
[all …]
H A Dphp_date.stub.php152 string $datetime = "now", ?DateTimeZone $timezone = null): DateTimeImmutable|false {}
160 string $format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false {}
356 public static function createFromImmutable(DateTimeImmutable $object): static {}
458 class DateTimeImmutable implements DateTimeInterface class
470 public static function __set_state(array $array): DateTimeImmutable {}
524 public function modify(string $modifier): DateTimeImmutable|false {}
527 public function add(DateInterval $interval): DateTimeImmutable {}
530 public function sub(DateInterval $interval): DateTimeImmutable {}
533 public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {}
539 public function setDate(int $year, int $month, int $day): DateTimeImmutable {}
[all …]
H A Dphp_date_arginfo.h579 ZEND_METHOD(DateTimeImmutable, __construct);
580 ZEND_METHOD(DateTimeImmutable, __serialize);
582 ZEND_METHOD(DateTimeImmutable, __wakeup);
583 ZEND_METHOD(DateTimeImmutable, __set_state);
585 ZEND_METHOD(DateTimeImmutable, modify);
586 ZEND_METHOD(DateTimeImmutable, add);
587 ZEND_METHOD(DateTimeImmutable, sub);
588 ZEND_METHOD(DateTimeImmutable, setTimezone);
589 ZEND_METHOD(DateTimeImmutable, setTime);
590 ZEND_METHOD(DateTimeImmutable, setDate);
[all …]
/php-src/ext/date/tests/
H A D68062.phpt7 $dt = new DateTimeImmutable('2014-09-20', $tz);
H A DDateInterval_serialize-001.phpt23 $now = new DateTimeImmutable("2022-04-22 16:25:11 BST");
108 object(DateTimeImmutable)#4 (3) {
116 object(DateTimeImmutable)#4 (3) {
H A DDateInterval_serialize-002.phpt7 $d1 = new DateTimeImmutable("1978-12-22 09:15 CET");
8 $d2 = new DateTimeImmutable("2022-04-15 10:27:27 BST");
42 $now = new DateTimeImmutable("2022-04-15 10:27:27 BST");
152 object(DateTimeImmutable)#6 (3) {
160 object(DateTimeImmutable)#6 (3) {
H A DDateInterval_serialize-003.phpt33 $now = new DateTimeImmutable("2022-04-22 16:25:11 BST");
83 object(DateTimeImmutable)#4 (3) {
91 DateInvalidOperationException: DateTimeImmutable::sub(): Only non-special relative time specificati…
H A DDatePeriod_by_ref_iterator.phpt6 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
H A DDatePeriod_createFromISO8601String_static_return.phpt26 object(DateTimeImmutable)#2 (3) {
H A DDatePeriod_modify_readonly_property.phpt6 new \DateTimeImmutable("2023-01-13"),
8 new \DateTimeImmutable("2023-12-31"),
H A DDatePeriod_serialize-001.phpt27 object(DateTimeImmutable)#%d (%d) {
72 string(%d) "O:10:"DatePeriod":7:{s:5:"start";O:17:"DateTimeImmutable":3:{s:4:"date";s:26:"2012-07-0…
78 object(DateTimeImmutable)#%d (%d) {
125 object(DateTimeImmutable)#%d (%d) {
H A DDatePeriod_serialize-002.phpt7 $s = new DateTimeImmutable("1978-12-22 09:15:00 Europe/Amsterdam");
8 $e = new DateTimeImmutable("2022-04-29 15:51:56 Europe/London");
35 object(DateTimeImmutable)#%d (%d) {
46 object(DateTimeImmutable)#%d (%d) {
87DateTimeImmutable":3:{s:4:"date";s:26:"1978-12-22 09:15:00.000000";s:13:"timezone_type";i:3;s:8:"t…
93 object(DateTimeImmutable)#%d (%d) {
104 object(DateTimeImmutable)#%d (%d) {
147 object(DateTimeImmutable)#%d (%d) {
158 object(DateTimeImmutable)#%d (%d) {
H A DDatePeriod_serialize-003.phpt7 $s = new DateTimeImmutable("1978-12-22 09:15:00 Europe/Amsterdam");
8 $e = new DateTimeImmutable("2022-04-29 15:51:56 Europe/London");
35 object(DateTimeImmutable)#%d (%d) {
46 object(DateTimeImmutable)#%d (%d) {
87DateTimeImmutable":3:{s:4:"date";s:26:"1978-12-22 09:15:00.000000";s:13:"timezone_type";i:3;s:8:"t…
93 object(DateTimeImmutable)#%d (%d) {
104 object(DateTimeImmutable)#%d (%d) {
147 object(DateTimeImmutable)#%d (%d) {
158 object(DateTimeImmutable)#%d (%d) {
H A DDatePeriod_serialize-004.phpt7 $s = new DateTimeImmutable("1978-12-22 09:15:00 Europe/Amsterdam");
40 object(DateTimeImmutable)#%d (%d) {
95DateTimeImmutable":3:{s:4:"date";s:26:"1978-12-22 09:15:00.000000";s:13:"timezone_type";i:3;s:8:"t…
101 object(DateTimeImmutable)#%d (%d) {
110 object(DateTimeImmutable)#%d (%d) {
155 object(DateTimeImmutable)#%d (%d) {
164 object(DateTimeImmutable)#%d (%d) {
H A DDatePeriod_set_state_exception.phpt8 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
17 … "2023-01-13 12:29:30", 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current' => new \
21 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => "2023-01-16 16:49:29", 'current…
25 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01…
29 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
33 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
37 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
41 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
H A DDatePeriod_wrong_arguments.phpt5 $dp = new DatePeriod(new \DateTimeImmutable("2023-01-13 12:29:30"), DateInterval::createFromDateStr…
8 …new DatePeriod(new \DateTimeImmutable("2023-01-13 12:29:30"), DateInterval::createFromDateString("…
H A DDateTimeImmutable_constants.phpt2 DateTimeImmutable constants
7 DATE_ATOM === DateTimeImmutable::ATOM,
8 DATE_COOKIE === DateTimeImmutable::COOKIE,
9 DATE_ISO8601 === DateTimeImmutable::ISO8601,
11 DATE_RFC822 === DateTimeImmutable::RFC822,
12 DATE_RFC850 === DateTimeImmutable::RFC850,
13 DATE_RFC1036 === DateTimeImmutable::RFC1036,
14 DATE_RFC1123 === DateTimeImmutable::RFC1123,
15 DATE_RFC7231 === DateTimeImmutable::RFC7231,
19 DATE_RSS === DateTimeImmutable::RSS,
[all …]
H A DDateTimeImmutable_createFromInterface-001.phpt2 Tests for DateTimeImmutable::createFromInterface
9 $i = DateTimeImmutable::createFromInterface( date_create( $current ) );
12 $i = DateTimeImmutable::createFromInterface( date_create_immutable( $current ) );
17 $i = DateTimeImmutable::createFromInterface( date_create( $current ) );
25 $i = DateTimeImmutable::createFromInterface( date_create( $current ) );
32 object(DateTimeImmutable)#%d (3) {
40 object(DateTimeImmutable)#%d (3) {
48 object(DateTimeImmutable)#%d (3) {
56 object(DateTimeImmutable)#%d (3) {
64 object(DateTimeImmutable)#%d (3) {
[all …]
H A DDateTimeImmutable_createFromInterface-002.phpt2 Tests for DateTimeImmutable::createFromInterface inheritance
7 class MyDateTimeImmutable extends DateTimeImmutable {}
H A DDateTimeImmutable_createFromInterface_exceptions.phpt2 DateTimeImmutable::createFromInterface exception
14 class MyDateTimeImmutable extends DateTimeImmutable
23 $m = DateTimeImmutable::createFromInterface( $i );
30 $m = DateTimeImmutable::createFromInterface( $i );
37 DateObjectError: Object of type MyDateTimeImmutable (inheriting DateTimeImmutable) has not been cor…
H A DDateTimeImmutable_createFromMutable-001.phpt2 Tests for DateTimeImmutable::createFromMutable
9 $i = DateTimeImmutable::createFromMutable( date_create( $current ) );
13 DateTimeImmutable::createFromMutable( date_create_immutable( $current ) );
19 object(DateTimeImmutable)#%d (3) {
27 TypeError: DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime,
H A DDateTimeImmutable_createFromMutable-002.phpt2 Tests for inherited DateTimeImmutable::createFromMutable
7 class MyDateTimeImmutable extends DateTimeImmutable {}
29 TypeError: DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime,
H A DDateTimeImmutable_createFromMutable_exceptions.phpt2 DateTimeImmutable::createFromMutable exception
17 $m = DateTimeImmutable::createFromMutable( $i );
H A DDateTimeImmutable_inherited_serialization.phpt2 Inherited DateTimeImmutable serialisation with custom properties
7 class MyDateTimeImmutable extends DateTimeImmutable
H A DDateTimeImmutable_modify_invalid_format.phpt2 DateTimeImmutable::modify() with invalid format
6 $datetime = new DateTimeImmutable;
15 DateMalformedStringException: DateTimeImmutable::modify(): Failed to parse time string () at positi…

Completed in 227 milliseconds

1234