Searched refs:DateTimeImmutable (Results 26 – 50 of 84) sorted by relevance
1234
/php-src/ext/date/tests/ |
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 | 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 | gh10747-4.phpt | 22 $i = new I(new DateTimeImmutable('2023-03-03 16:24'), DateInterval::createFromDateString('+1 hour')… 39 object(DateTimeImmutable)#%d (%d) { 50 object(DateTimeImmutable)#%d (%d) { 88 …DateTimeImmutable":3:{s:4:"date";s:26:"2023-03-03 16:24:00.000000";s:13:"timezone_type";i:3;s:8:"t… 99 object(DateTimeImmutable)#%d (%d) { 110 object(DateTimeImmutable)#%d (%d) {
|
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 | 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 | DatePeriod_serialize-004.phpt | 7 $s = new DateTimeImmutable("1978-12-22 09:15:00 Europe/Amsterdam"); 40 object(DateTimeImmutable)#%d (%d) { 95 …DateTimeImmutable":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 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 | bug79716.phpt | 5 $datetime = new \DateTimeImmutable( 14 object(DateTimeImmutable)#%d (%d) {
|
H A D | bug74173.phpt | 2 Bug #74173 (DateTimeImmutable::getTimestamp() triggers DST switch in incorrect time) 5 $utc = new \DateTimeImmutable('2016-10-30T00:00:00+00:0');
|
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 | DateInterval_serialize-002.phpt | 7 $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 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 | DateTimeImmutable_inherited_serialization.phpt | 2 Inherited DateTimeImmutable serialisation with custom properties 7 class MyDateTimeImmutable extends DateTimeImmutable
|
H A D | DatePeriod_wrong_arguments.phpt | 5 $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 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 | DateTimeImmutable_createFromMutable_exceptions.phpt | 2 DateTimeImmutable::createFromMutable exception 17 $m = DateTimeImmutable::createFromMutable( $i );
|
H A D | gh10152.phpt | 2 Bug GH-10152 (Custom properties of DateTimeImmutable child classes are not serialized) 6 class MyDateTimeImmutable extends DateTimeImmutable {
|
H A D | DatePeriod_modify_readonly_property.phpt | 6 new \DateTimeImmutable("2023-01-13"), 8 new \DateTimeImmutable("2023-12-31"),
|
H A D | date_period_properties.phpt | 25 object(DateTimeImmutable)#%d (%d) { 68 string(%d) "O:12:"MyDatePeriod":8:{s:5:"start";O:17:"DateTimeImmutable":3:{s:4:"date";s:26:"2012-07… 73 object(DateTimeImmutable)#%d (%d) { 118 \DateTimeImmutable::__set_state(array( 146 object(DateTimeImmutable)#%d (%d) {
|
/php-src/ext/date/ |
H A D | php_date.stub.php | 155 string $datetime = "now", ?DateTimeZone $timezone = null): DateTimeImmutable|false {} 163 string $format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false {} 359 public static function createFromImmutable(DateTimeImmutable $object): static {} 461 class DateTimeImmutable implements DateTimeInterface class 473 public static function __set_state(array $array): DateTimeImmutable {} 527 public function modify(string $modifier): DateTimeImmutable {} 530 public function add(DateInterval $interval): DateTimeImmutable {} 533 public function sub(DateInterval $interval): DateTimeImmutable {} 536 public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {} 542 public function setDate(int $year, int $month, int $day): DateTimeImmutable {} [all …]
|
H A D | php_date_arginfo.h | 579 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/intl/tests/ |
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";
|
/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 34 milliseconds
1234