Home
last modified time | relevance | path

Searched refs:DateTime (Results 176 – 200 of 380) sorted by relevance

12345678910>>...16

/php-src/ext/date/tests/
H A Dbug78383.phpt2 Bug #78383: Casting a DateTime to array no longer returns its properties
6 var_dump((array) new DateTime('2000-01-01 UTC'));
H A Ddate_period_exclude_start_and_include_end.phpt6 $start = new DateTime('2010-06-07');
7 $end = new DateTime('2010-06-10');
H A Dbug71525.phpt7 $date = new DateTime('2011-12-25 00:00:00');
13 object(DateTime)#%d (3) {
H A Dbug74524.phpt7 $a = new DateTime("2017-11-17 22:05:26.000000");
8 $b = new DateTime("2017-04-03 22:29:15.079459");
H A Dbug81273.phpt9 $auz = new DateTime($time, $tz_aus);
10 $us = new DateTime($time, $tz_us);
H A Dbug43003.phpt2 Bug #43003 (Invalid timezone reported for DateTime objects constructed using a timestamp)
7 $oDateTest = new DateTime("@0", new DateTimeZone(date_default_timezone_get()));
16 $oDateTest = new DateTime("@0");
H A Dbug60236.phpt7 $t = new DateTime('2010-07-06 18:38:28 EDT');
15 object(DateTime)#1 (3) {
H A Dbug70245.phpt5 $d = new DateTime('2011-01-15 00:00:00');
13 TypeError: strtotime(): Argument #2 ($baseTimestamp) must be of type ?int, DateTime given
H A DDateTime_inherited_serialization.phpt2 Inherited DateTime serialisation with custom properties
7 class MyDateTime extends DateTime
H A Dbug73294.phpt2 Bug #73294: DateTime wrong when date string is negative
10 $dt = new DateTime("{$i}-{$M}-{$D} 00:00:00");
H A Dbug78452.phpt6 $date1 = new \DateTime('2019-09-24 11:47:24');
7 $date2 = new \DateTime('2019-08-21 12:47:24');
H A Dgh10583.phpt2 Bug GH-10583 (DateTime modify with tz pattern should not update linked timezone)
6 $dt = new DateTime('2015-01-01 00:00:00+00:00');
H A Dbug45682.phpt8 $date = new DateTime("28-July-2008");
9 $other = new DateTime("31-July-2008");
H A Dbug80913.phpt2 Bug #80913 (DateTime(Immutable)::sub around DST yield incorrect time)
5 $date = new DateTime('2021-03-28 03:00:00', new DateTimeZone('Europe/Amsterdam'));
H A Dbug-gh11368.phpt18 object(DateTime)#1 (3) {
26 object(DateTime)#1 (3) {
H A DDateTimeImmutable_createFromMutable_exceptions.phpt7 class MyDateTime extends DateTime
23 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
/php-src/ext/intl/tests/
H A Ddateformat_formatObject_datetime.phpt2 IntlDateFormatter::formatObject(): DateTime tests
13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon
20 $dt = new DateTime('2012-01-01 05:00:00+03:00');
H A Ddateformat_formatObject_datetime_variant2.phpt2 IntlDateFormatter::formatObject(): DateTime tests
13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon
20 $dt = new DateTime('2012-01-01 05:00:00+03:00');
H A Ddateformat_formatObject_datetime_variant_icu72-1.phpt2 IntlDateFormatter::formatObject(): DateTime tests
13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon
20 $dt = new DateTime('2012-01-01 05:00:00+03:00');
H A Ddateformat_formatObject_datetime_variant3.phpt2 IntlDateFormatter::formatObject(): DateTime tests
14 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon
21 $dt = new DateTime('2012-01-01 05:00:00+03:00');
H A Ddateformat_formatObject_datetime_variant4.phpt2 IntlDateFormatter::formatObject(): DateTime tests
14 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon
21 $dt = new DateTime('2012-01-01 05:00:00+03:00');
H A Ddateformat_formatObject_datetime_variant5.phpt2 IntlDateFormatter::formatObject(): DateTime tests
14 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon
21 $dt = new DateTime('2012-01-01 05:00:00+03:00');
/php-src/tests/classes/
H A Dbug65768.phpt2 Bug #65768: date_diff accepts only DateTime instance even though docs say about DateTimeInterface
8 $dt1 = new DateTime("2010-10-20");
24 class cdt1 extends DateTime implements DateTimeInterface {}
/php-src/Zend/tests/return_types/
H A Drfc003.phpt5 function foo(): DateTime {
12 Fatal error: Uncaught TypeError: foo(): Return value must be of type DateTime, null returned in %s:…
/php-src/ext/gmp/tests/
H A Dcomparison_invalid.phpt15 var_dump((new DateTime()) > gmp_init(0));
23 TypeError: Number must be of type GMP|string|int, DateTime given

Completed in 43 milliseconds

12345678910>>...16