Home
last modified time | relevance | path

Searched refs:DateTimeImmutable (Results 26 – 50 of 82) sorted by last modified time

1234

/php-src/ext/date/tests/
H A Dbug-gh8471.phpt9 $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 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…
H A DDateTimeImmutable_set_state_exception.phpt2 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 DDatePeriod_by_ref_iterator.phpt6 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
H A DDatePeriod_modify_readonly_property.phpt6 new \DateTimeImmutable("2023-01-13"),
8 new \DateTimeImmutable("2023-12-31"),
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 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 D68062.phpt7 $dt = new DateTimeImmutable('2014-09-20', $tz);
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 Dgh10447.phpt5 $date = new \DateTimeImmutable('2023-01-25T00:00:00+00:00');
8 $date = new \DateTimeImmutable('2023-01-25T00:00:00-00:00');
H A DDateTimePeriod_inherited_serialization.phpt20 $d = new MyDatePeriod(new DateTimeImmutable(), new DateInterval("PT5S"), 5, myProperty: true);
H A DDateTimeImmutable_inherited_serialization.phpt2 Inherited DateTimeImmutable serialisation with custom properties
7 class MyDateTimeImmutable extends DateTimeImmutable
H A DDateTimeImmutable_serialization.phpt2 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 Dbug81263.phpt2 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 Dgh9699.phpt2 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 Dgh9866.phpt6 \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 Dbug75222.phpt6 $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 Dmsgfmt_format_datetime.phpt19 $dti = new DateTimeImmutable("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
H A Dmsgfmt_format_datetime_icu72-1.phpt19 $dti = new DateTimeImmutable("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
H A Ddateformat_bug65683.phpt2 Bug #65683 IntlDateFormatter accepts DateTimeImmutable
9 var_dump($formatter->format(new DateTimeImmutable('2017-03-27 00:00:00 UTC'))) . "\n";
H A Ddateformat_bug65683_2.phpt2 Bug #65683: Intl does not support DateTimeImmutable (using datefmt_format_object)
/php-src/tests/classes/
H A Dbug65768.phpt9 $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