Searched refs:DateTime (Results 176 – 200 of 380) sorted by relevance
12345678910>>...16
2 Bug #78383: Casting a DateTime to array no longer returns its properties6 var_dump((array) new DateTime('2000-01-01 UTC'));
6 $start = new DateTime('2010-06-07');7 $end = new DateTime('2010-06-10');
7 $date = new DateTime('2011-12-25 00:00:00');13 object(DateTime)#%d (3) {
7 $a = new DateTime("2017-11-17 22:05:26.000000");8 $b = new DateTime("2017-04-03 22:29:15.079459");
9 $auz = new DateTime($time, $tz_aus);10 $us = new DateTime($time, $tz_us);
2 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");
7 $t = new DateTime('2010-07-06 18:38:28 EDT');15 object(DateTime)#1 (3) {
5 $d = new DateTime('2011-01-15 00:00:00');13 TypeError: strtotime(): Argument #2 ($baseTimestamp) must be of type ?int, DateTime given
2 Inherited DateTime serialisation with custom properties7 class MyDateTime extends DateTime
2 Bug #73294: DateTime wrong when date string is negative10 $dt = new DateTime("{$i}-{$M}-{$D} 00:00:00");
6 $date1 = new \DateTime('2019-09-24 11:47:24');7 $date2 = new \DateTime('2019-08-21 12:47:24');
2 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');
8 $date = new DateTime("28-July-2008");9 $other = new DateTime("31-July-2008");
2 Bug #80913 (DateTime(Immutable)::sub around DST yield incorrect time)5 $date = new DateTime('2021-03-28 03:00:00', new DateTimeZone('Europe/Amsterdam'));
18 object(DateTime)#1 (3) {26 object(DateTime)#1 (3) {
7 class MyDateTime extends DateTime23 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
2 IntlDateFormatter::formatObject(): DateTime tests13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon20 $dt = new DateTime('2012-01-01 05:00:00+03:00');
2 IntlDateFormatter::formatObject(): DateTime tests14 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon21 $dt = new DateTime('2012-01-01 05:00:00+03:00');
2 Bug #65768: date_diff accepts only DateTime instance even though docs say about DateTimeInterface8 $dt1 = new DateTime("2010-10-20");24 class cdt1 extends DateTime implements DateTimeInterface {}
5 function foo(): DateTime {12 Fatal error: Uncaught TypeError: foo(): Return value must be of type DateTime, null returned in %s:…
15 var_dump((new DateTime()) > gmp_init(0));23 TypeError: Number must be of type GMP|string|int, DateTime given
Completed in 43 milliseconds