/PHP-8.0/ext/date/tests/ |
H A D | DateTimeImmutable_constants.phpt | 2 DateTimeImmutable constants 7 DATE_ATOM === DateTimeImmutable::ATOM, 8 DATE_COOKIE === DateTimeImmutable::COOKIE, 9 DATE_ISO8601 === DateTimeImmutable::ISO8601, 10 DATE_RFC822 === DateTimeImmutable::RFC822, 11 DATE_RFC850 === DateTimeImmutable::RFC850, 12 DATE_RFC1036 === DateTimeImmutable::RFC1036, 13 DATE_RFC1123 === DateTimeImmutable::RFC1123, 14 DATE_RFC2822 === DateTimeImmutable::RFC2822, 16 DATE_RSS === DateTimeImmutable::RSS, [all …]
|
H A D | DateTimeImmutable_createFromInterface-001.phpt | 2 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 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 DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, DateTimeImm…
|
H A D | bug72719.phpt | 5 echo (new DateTimeImmutable('Monday next week 13:00'))->format('l'), "\n"; 6 echo (new DateTimeImmutable('Tuesday next week 14:00'))->format('l'), "\n"; 7 echo (new DateTimeImmutable('Wednesday next week 14:00'))->format('l'), "\n"; 8 echo (new DateTimeImmutable('Thursday next week 15:00'))->format('l'), "\n"; 9 echo (new DateTimeImmutable('Friday next week 16:00'))->format('l'), "\n"; 10 echo (new DateTimeImmutable('Saturday next week 17:00'))->format('l'), "\n"; 11 echo (new DateTimeImmutable('Sunday next week 18:00'))->format('l'), "\n";
|
H A D | bug80047.phpt | 2 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 D | bug78751.phpt | 2 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 D | DateTimeImmutable_createFromMutable-002.phpt | 2 Tests for inherited DateTimeImmutable::createFromMutable 7 class MyDateTimeImmutable extends DateTimeImmutable {} 29 DateTimeImmutable::createFromMutable(): Argument #1 ($object) must be of type DateTime, DateTimeImm…
|
H A D | bug65502.phpt | 2 Test for bug #65502: DateTimeImmutable::createFromFormat returns DateTime 9 echo get_class(DateTimeImmutable::createFromFormat('j-M-Y', '12-Sep-2013')); 12 DateTimeImmutable
|
H A D | DateTimeImmutable_modify_invalid_format.phpt | 2 DateTimeImmutable::modify() with invalid format 6 $datetime = new DateTimeImmutable; 11 Warning: DateTimeImmutable::modify(): Failed to parse time string () at position 0 ( in %s on line …
|
H A D | bug80057.phpt | 2 Bug #80057 (DateTimeImmutable::createFromFormat() does not populate time) 5 $now = new DateTimeImmutable; 6 $parsed = DateTimeImmutable::createFromFormat('Y-m-d', '2020-09-04');
|
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 The DateTimeImmutable object has not been correctly initialized by its constructor
|
H A D | DateTimeImmutable_set_state.phpt | 2 Test __set_state magic method for recreating a DateTimeImmutable object 8 $datettimeObject = new DateTimeImmutable('2017-10-06 23:30:00', new DateTimezone('UTC')); 18 object(DateTimeImmutable)#%d (3) {
|
H A D | date_time_fractions.phpt | 15 $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 D | date_period-immutable.phpt | 6 $db1 = new DateTimeImmutable( '2008-01-01' ); 28 DateTimeImmutable 33 DateTimeImmutable 38 DateTimeImmutable
|
H A D | bug65548.phpt | 2 Test for bug #65548: Comparison for DateTimeImmutable doesn't work 9 $iToday = new DateTimeImmutable('today'); 10 $iTomorrow = new DateTimeImmutable('tomorrow');
|
H A D | bug60302-002.phpt | 2 Test for bug #60302: DateTimeImmutable::createFromFormat should new static(), not new self() 6 class MyDateTime extends DateTimeImmutable { }
|
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');
|
H A D | bug68669.phpt | 8 var_dump(DateTimeImmutable::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null)); 19 object(DateTimeImmutable)#1 (3) {
|
H A D | bug72963.phpt | 23 $d2 = DateTimeImmutable::createFromFormat('!m/d/Y', $string); 48 object(DateTimeImmutable)#2 (3) { 88 DateTimeImmutable::createFromFormat(): Argument #2 ($datetime) must not contain any null bytes
|
H A D | DateTimeImmutable_createFromInterface-002.phpt | 2 Tests for DateTimeImmutable::createFromInterface inheritance 7 class MyDateTimeImmutable extends DateTimeImmutable {}
|
/PHP-8.0/ext/intl/tests/ |
H A D | dateformat_format_relative.phpt | 28 function printFormat(int $dateFormat, int $timeFormat, DateTimeImmutable $time) { 40 function getToday(): DateTimeImmutable { 41 return new DateTimeImmutable(); 44 function getYesterday(): DateTimeImmutable { 45 return new DateTimeImmutable("-1 day"); 48 function getTomorrow(): DateTimeImmutable { 49 return new DateTimeImmutable("+1 day"); 52 function getDayInPast(): DateTimeImmutable { 53 return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("UTC"));
|
H A D | dateformat_bug65683.phpt | 2 Bug #65683 IntlDateFormatter accepts DateTimeImmutable 10 var_dump($formatter->format(new DateTimeImmutable('2017-03-27 00:00:00 UTC'))) . "\n";
|
/PHP-8.0/ext/date/ |
H A D | php_date.stub.php | 254 /** @return DateTimeImmutable */ 258 * @return DateTimeImmutable|false 299 /** @return DateTimeImmutable|false */ 302 /** @return DateTimeImmutable */ 305 /** @return DateTimeImmutable */ 308 /** @return DateTimeImmutable */ 311 /** @return DateTimeImmutable */ 314 /** @return DateTimeImmutable */ 317 /** @return DateTimeImmutable */ 320 /** @return DateTimeImmutable */ [all …]
|
H A D | php_date_arginfo.h | 482 ZEND_METHOD(DateTimeImmutable, __construct); 483 ZEND_METHOD(DateTimeImmutable, __wakeup); 484 ZEND_METHOD(DateTimeImmutable, __set_state); 485 ZEND_METHOD(DateTimeImmutable, modify); 486 ZEND_METHOD(DateTimeImmutable, add); 487 ZEND_METHOD(DateTimeImmutable, sub); 488 ZEND_METHOD(DateTimeImmutable, setTimezone); 489 ZEND_METHOD(DateTimeImmutable, setTime); 490 ZEND_METHOD(DateTimeImmutable, setDate); 491 ZEND_METHOD(DateTimeImmutable, setISODate); [all …]
|
/PHP-8.0/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 {}
|