Home
last modified time | relevance | path

Searched refs:DateTimeImmutable (Results 26 – 50 of 84) sorted by relevance

1234

/php-src/ext/date/tests/
H A DDateTimeImmutable_set_state.phpt2 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 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 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 Dgh10747-4.phpt22 $i = new I(new DateTimeImmutable('2023-03-03 16:24'), DateInterval::createFromDateString('+1 hour')…
39 object(DateTimeImmutable)#%d (%d) {
50 object(DateTimeImmutable)#%d (%d) {
88DateTimeImmutable":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 DDatePeriod_by_ref_iterator.phpt6 …' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01-16 16…
H A Ddate_period-immutable.phpt6 $db1 = new DateTimeImmutable( '2008-01-01' );
28 DateTimeImmutable
33 DateTimeImmutable
38 DateTimeImmutable
H A Dbug65548.phpt2 Test for bug #65548: Comparison for DateTimeImmutable doesn't work
9 $iToday = new DateTimeImmutable('today');
10 $iTomorrow = new DateTimeImmutable('tomorrow');
H A DDatePeriod_serialize-004.phpt7 $s = new DateTimeImmutable("1978-12-22 09:15:00 Europe/Amsterdam");
40 object(DateTimeImmutable)#%d (%d) {
95DateTimeImmutable":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 Dbug60302-002.phpt2 Test for bug #60302: DateTimeImmutable::createFromFormat should new static(), not new self()
6 class MyDateTime extends DateTimeImmutable { }
H A Dbug79716.phpt5 $datetime = new \DateTimeImmutable(
14 object(DateTimeImmutable)#%d (%d) {
H A Dbug74173.phpt2 Bug #74173 (DateTimeImmutable::getTimestamp() triggers DST switch in incorrect time)
5 $utc = new \DateTimeImmutable('2016-10-30T00:00:00+00:0');
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 DDateInterval_serialize-002.phpt7 $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 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 DDateTimeImmutable_inherited_serialization.phpt2 Inherited DateTimeImmutable serialisation with custom properties
7 class MyDateTimeImmutable extends DateTimeImmutable
H A DDatePeriod_wrong_arguments.phpt5 $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 Dbug68669.phpt8 var_dump(DateTimeImmutable::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null));
19 object(DateTimeImmutable)#1 (3) {
H A DDateTimeImmutable_createFromMutable_exceptions.phpt2 DateTimeImmutable::createFromMutable exception
17 $m = DateTimeImmutable::createFromMutable( $i );
H A Dgh10152.phpt2 Bug GH-10152 (Custom properties of DateTimeImmutable child classes are not serialized)
6 class MyDateTimeImmutable extends DateTimeImmutable {
H A DDatePeriod_modify_readonly_property.phpt6 new \DateTimeImmutable("2023-01-13"),
8 new \DateTimeImmutable("2023-12-31"),
H A Ddate_period_properties.phpt25 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 Dphp_date.stub.php155 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 Dphp_date_arginfo.h579 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 Ddateformat_bug65683.phpt2 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 Dbug65768.phpt9 $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