Searched refs:DateTimeImmutable (Results 26 – 50 of 82) sorted by last modified time
1234
/php-src/ext/date/tests/ |
H A D | bug-gh8471.phpt | 9 $immutable = \DateTimeImmutable::createFromMutable($mutable); 19 $immutable = \DateTimeImmutable::createFromInterface($mutable); 25 $reflection = new ReflectionClass('\DateTimeImmutable'); 35 $reflection = new ReflectionClass('\DateTimeImmutable'); 49 Object of type DateTimeImmutable has not been correctly initialized by calling parent::__construct(… 50 Object of type DateTimeImmutable has not been correctly initialized by calling parent::__construct(…
|
H A D | DateTimeImmutable_modify_invalid_format.phpt | 2 DateTimeImmutable::modify() with invalid format 6 $datetime = new DateTimeImmutable; 15 DateMalformedStringException: DateTimeImmutable::modify(): Failed to parse time string () at positi…
|
H A D | DateTimeImmutable_set_state_exception.phpt | 2 DateTimeImmutable invalid serialization data 21 $d = DateTimeImmutable::__set_state( $propertySet ); 31 Error: Invalid serialization data for DateTimeImmutable object 32 Error: Invalid serialization data for DateTimeImmutable object 33 Error: Invalid serialization data for DateTimeImmutable object 34 Error: Invalid serialization data for DateTimeImmutable object 35 Error: Invalid serialization data for DateTimeImmutable object 36 Error: Invalid serialization data for DateTimeImmutable object 37 Error: Invalid serialization data for DateTimeImmutable object 38 Error: Invalid serialization data for DateTimeImmutable object
|
H A D | DatePeriod_by_ref_iterator.phpt | 6 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
|
H A D | DatePeriod_modify_readonly_property.phpt | 6 new \DateTimeImmutable("2023-01-13"), 8 new \DateTimeImmutable("2023-12-31"),
|
H A D | DatePeriod_set_state_exception.phpt | 8 …' => 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 D | DateTimeImmutable_createFromInterface_exceptions.phpt | 2 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 D | DateTimeImmutable_createFromMutable-001.phpt | 2 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 D | DateTimeImmutable_createFromMutable-002.phpt | 2 Tests for inherited DateTimeImmutable::createFromMutable 7 class MyDateTimeImmutable extends DateTimeImmutable {} 29 TypeError: DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, …
|
H A D | DateTimeImmutable_createFromMutable_exceptions.phpt | 2 DateTimeImmutable::createFromMutable exception 17 $m = DateTimeImmutable::createFromMutable( $i );
|
H A D | 68062.phpt | 7 $dt = new DateTimeImmutable('2014-09-20', $tz);
|
H A D | DateInterval_serialize-003.phpt | 33 $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 D | gh10447.phpt | 5 $date = new \DateTimeImmutable('2023-01-25T00:00:00+00:00'); 8 $date = new \DateTimeImmutable('2023-01-25T00:00:00-00:00');
|
H A D | DateTimePeriod_inherited_serialization.phpt | 20 $d = new MyDatePeriod(new DateTimeImmutable(), new DateInterval("PT5S"), 5, myProperty: true);
|
H A D | DateTimeImmutable_inherited_serialization.phpt | 2 Inherited DateTimeImmutable serialisation with custom properties 7 class MyDateTimeImmutable extends DateTimeImmutable
|
H A D | DateTimeImmutable_serialization.phpt | 2 Test DateTimeImmutable::__serialize and DateTimeImmutable::__unserialize 8 $d = new DateTimeImmutable("2022-04-14 11:27:42"); 24 $d = new DateTimeImmutable; 55 object(DateTimeImmutable)#%d (%d) { 66 string(135) "O:17:"DateTimeImmutable":3:{s:4:"date";s:26:"2022-04-14 11:27:42.000000";s:13:"timezon… 70 object(DateTimeImmutable)#%d (%d) { 92 object(DateTimeImmutable)#%d (%d) { 103 object(DateTimeImmutable)#%d (%d) { 111 object(DateTimeImmutable)#%d (%d) {
|
H A D | bug81263.phpt | 2 Bug #81263 (Wrong result from DateTimeImmutable::diff) 6 $dt1 = new DateTimeImmutable('2020-07-19 18:30:00', new DateTimeZone('Europe/Berlin')); 7 $dt2 = new DateTimeImmutable('2020-07-19 16:30:00', new DateTimeZone('UTC'));
|
H A D | gh9699.phpt | 2 Bug GH-9699 (DateTimeImmutable::diff differences in 8.1.10 onwards - timezone related) 6 $date = new DateTimeImmutable('2022-10-09 02:41:54.515330', new DateTimeZone('America/Los_Angeles')… 7 $now = new DateTimeImmutable('2022-10-10 08:41:54.534620', new DateTimeZone('UTC'));
|
H A D | gh9866.phpt | 6 \DateTimeImmutable $startDate, 7 \DateTimeImmutable $endDate, 13 $start = new \DateTimeImmutable('2000-11-01 09:29:22.907606', new \DateTimeZone('America/Chicago')); 14 $end = new \DateTimeImmutable('2022-06-06 11:00:00.000000', new \DateTimeZone('America/New_York'));
|
H A D | bug75222.phpt | 6 $dt1 = new \DateTimeImmutable('2017-01-01T00:00:00.000000Z'); 7 $dt2 = new \DateTimeImmutable('2017-01-01T00:00:00.123456Z');
|
/php-src/ext/intl/tests/ |
H A D | msgfmt_format_datetime.phpt | 19 $dti = new DateTimeImmutable("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
|
H A D | msgfmt_format_datetime_icu72-1.phpt | 19 $dti = new DateTimeImmutable("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
|
H A D | dateformat_bug65683.phpt | 2 Bug #65683 IntlDateFormatter accepts DateTimeImmutable 9 var_dump($formatter->format(new DateTimeImmutable('2017-03-27 00:00:00 UTC'))) . "\n";
|
H A D | dateformat_bug65683_2.phpt | 2 Bug #65683: Intl does not support DateTimeImmutable (using datefmt_format_object)
|
/php-src/tests/classes/ |
H A D | bug65768.phpt | 9 $dti1 = new DateTimeImmutable("2010-10-25"); 10 $dti2 = new DateTimeImmutable("2010-10-28"); 26 class cdt2 extends DateTimeImmutable implements DateTimeInterface {}
|
Completed in 44 milliseconds
1234