Home
last modified time | relevance | path

Searched refs:DateTimeImmutable (Results 51 – 75 of 82) sorted by path

1234

/php-src/ext/date/tests/
H A Dbug75222.phpt6 $dt1 = new \DateTimeImmutable('2017-01-01T00:00:00.000000Z');
7 $dt2 = new \DateTimeImmutable('2017-01-01T00:00:00.123456Z');
H A Dbug78751.phpt2 Bug #78751 (Serialising DatePeriod converts DateTimeImmutable)
5 $oDay = new DateTimeImmutable('2019-10-25');
10 $oDays->start instanceof DateTimeImmutable,
11 $oDays->end instanceof DateTimeImmutable
H A Dbug79716.phpt5 $datetime = new \DateTimeImmutable(
14 object(DateTimeImmutable)#%d (%d) {
H A Dbug80047.phpt2 Bug #80047: DatePeriod doesn't support custom DateTimeImmutable
8 class CustomDateTimeImmutable extends DateTimeImmutable {}
11 $dti = new DateTimeImmutable('2022-06-24');
36 DateTimeImmutable
37 DateTimeImmutable
38 DateTimeImmutable
39 DateTimeImmutable
H A Dbug80057.phpt2 Bug #80057 (DateTimeImmutable::createFromFormat() does not populate time)
5 $now = new DateTimeImmutable;
6 $parsed = DateTimeImmutable::createFromFormat('Y-m-d', '2020-09-04');
H A Dbug81106.phpt8 echo (new DateTimeImmutable('2000-01-01 00:00:00'))->add($dateInterval)->format('Y-m-d H:i:s.u');
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 DcreateFromTimestamp.phpt9 class MyDateTimeImmutable extends DateTimeImmutable {};
38 var_dump(DateTimeImmutable::createFromTimestamp($ts));
68 DateTimeImmutable::createFromTimestamp(1696883232): object(DateTimeImmutable)#%d (3) {
84 DateTimeImmutable::createFromTimestamp(-1696883232): object(DateTimeImmutable)#%d (3) {
100 DateTimeImmutable::createFromTimestamp(1696883232.013981): object(DateTimeImmutable)#%d (3) {
116 DateTimeImmutable::createFromTimestamp(-1696883232.013981): object(DateTimeImmutable)#%d (3) {
132 DateTimeImmutable::createFromTimestamp(0.123456): object(DateTimeImmutable)#%d (3) {
148 DateTimeImmutable::createFromTimestamp(-0.123456): object(DateTimeImmutable)#%d (3) {
164 DateTimeImmutable::createFromTimestamp(0): object(DateTimeImmutable)#%d (3) {
180 DateTimeImmutable::createFromTimestamp(0.0): object(DateTimeImmutable)#%d (3) {
[all …]
H A DcreateFromTimestamp_32bit.phpt31 echo 'DateTimeImmutable::createFromTimestamp(' . var_export($ts, true) . '): ';
33 var_dump(DateTimeImmutable::createFromTimestamp($ts));
49 DateTimeImmutable::createFromTimestamp(2147483647): object(DateTimeImmutable)#%d (3) {
65 DateTimeImmutable::createFromTimestamp(-2147483647-1): object(DateTimeImmutable)#%d (3) {
81 DateTimeImmutable::createFromTimestamp(2147483647.5): object(DateTimeImmutable)#%d (3) {
97 DateTimeImmutable::createFromTimestamp(-2147483647.5): object(DateTimeImmutable)#%d (3) {
113 DateTimeImmutable::createFromTimestamp(2147483646.5): object(DateTimeImmutable)#%d (3) {
122 DateTimeImmutable::createFromTimestamp(-2147483648.5): DateRangeError: DateTimeImmutable::createFro…
124 DateTimeImmutable::createFromTimestamp(2147484671.0): DateRangeError: DateTimeImmutable::createFrom…
126 DateTimeImmutable::createFromTimestamp(-2147484673.0): DateRangeError: DateTimeImmutable::createFro…
H A Ddate_period-immutable.phpt6 $db1 = new DateTimeImmutable( '2008-01-01' );
28 DateTimeImmutable
33 DateTimeImmutable
38 DateTimeImmutable
H A Ddate_time_fractions.phpt15 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.819210" );
18 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" );
24 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" );
27 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" );
30 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" );
35 $dt1 = new DateTimeImmutable( "2016-10-03 13:20:07.103123" );
36 $dt2 = new DateTimeImmutable( "2016-10-03 13:20:07.481312" );
H A Ddate_time_immutable-inherited.phpt2 Tests for DateTimeImmutable.
H A Ddate_time_immutable.phpt2 Tests for DateTimeImmutable.
56 $v = new DateTimeImmutable($current);
H A Ddate_time_immutable001.phpt2 DateTimeImmutable - invalid arguments
H A DgetSetMicroseconds.phpt7 class MyDateTimeImmutable extends DateTimeImmutable {};
17 $dti = new DateTimeImmutable('2023-04-05T06:07:08.901234+00:00');
79 DateTimeImmutable::getMicrosecond(): 901234
80 object(DateTimeImmutable)#%d (3) {
116 DateTimeImmutable::setMicrosecond(0): object(DateTimeImmutable)#%d (3) {
124 DateTimeImmutable::getMicrosecond(): 901234
153 DateTimeImmutable::setMicrosecond(999999): object(DateTimeImmutable)#%d (3) {
161 DateTimeImmutable::getMicrosecond(): 901234
183 DateTimeImmutable::setMicrosecond(-1): DateRangeError: DateTimeImmutable::setMicrosecond(): Argumen…
184 DateTimeImmutable::getMicrosecond(): 901234
[all …]
H A Dgh10152.phpt2 Bug GH-10152 (Custom properties of DateTimeImmutable child classes are not serialized)
6 class MyDateTimeImmutable extends DateTimeImmutable {
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 Dgh10583.phpt10 $dt = new DateTimeImmutable('2015-01-01 00:00:00+00:00');
H A Dgh10747-1.phpt2 Bug GH-10747 (Private fields in serialized DateTimeImmutable objects throw)
7 class I extends DateTimeImmutable
H A Dgh10747-4.phpt22 $i = new I(new DateTimeImmutable('2023-03-03 16:24'), DateInterval::createFromDateString('+1 hour')…
31 object(DateTimeImmutable)#5 (3) {
42 object(DateTimeImmutable)#6 (3) {
88DateTimeImmutable":3:{s:4:"date";s:26:"2023-03-03 16:24:00.000000";s:13:"timezone_type";i:3;s:8:"t…
91 object(DateTimeImmutable)#9 (3) {
102 object(DateTimeImmutable)#10 (3) {
H A Dgh10747-error.phpt2 Bug GH-10747 (Private fields in serialized DateTimeImmutable objects throw)
5 class I extends DateTimeImmutable
H A Dgh11455.phpt5 class MyDateTimeImmutable extends DateTimeImmutable {
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'));
/php-src/ext/intl/tests/
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";

Completed in 33 milliseconds

1234