Home
last modified time | relevance | path

Searched refs:DateTime (Results 101 – 125 of 380) sorted by relevance

12345678910>>...16

/php-src/ext/date/tests/
H A Dbug50475.phpt2 Bug #50475 (DateTime::setISODate followed by DateTime::setTime)
7 $date = new DateTime('18-01-2009 00:00:00');
H A Dbug64157.phpt2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message
9 DateTime::createFromFormat('s', '0');
10 $lastErrors = DateTime::getLastErrors();
H A Dbug49081.phpt2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
6 $d1 = new DateTime('2010-01-01 06:00:00');
7 $d2 = new DateTime('2010-01-31 10:00:00');
H A Dbug69089.phpt2 Bug #69089 (Add support for RFC3339 extended to DateTime::format)
9 $date = new DateTime('2009-09-28 09:45:31.918312');
11 var_dump($date->format(DateTime::RFC3339_EXTENDED));
H A Dgh8730.phpt2 Bug GH-8730 (DateTime::diff miscalculation is same time zone of different type)
5 $foo = new DateTime('2022-06-08 09:15:00', new DateTimeZone('-04:00'));
6 $bar = new DateTime('2022-06-08 09:15:00', new DateTimeZone('US/Eastern'));
H A DDateTime_clone_basic4.phpt2 Test clone of DateTime derived objects with __clone magic method
11 class DateTimeExt1 extends DateTime {
17 echo "*** Testing clone of objects derived from DateTime class with __clone magic method***\n";
27 *** Testing clone of objects derived from DateTime class with __clone magic method***
H A Dbug73460-002.phpt9 $start = new \DateTime('2006-04-02T01:00:00');
10 $end = new \DateTime('2006-04-02T04:00:00');
21 $start = new \DateTime('2006-10-29T00:30:00');
22 $end = new \DateTime('2006-10-29T03:00:00');
H A Dbug79396-forward-transition-settime.phpt7 $date = new DateTime('2020-03-08 01:30:00');
10 $date = new DateTime('2020-03-08 01:30:00');
13 $date = new DateTime('2020-03-08 01:30:00');
16 $date = new DateTime('2020-03-08 01:30:00');
H A Dbug68078.phpt7 $date1 = DateTime::createFromFormat('U.u', '1448889063.3531');
8 $date2 = DateTime::createFromFormat('U.u', '1448889063.5216');
9 $date3 = DateTime::createFromFormat('U.u', '1448889063.5216');
H A Ddate_time_fractions_create_from_format.phpt2 Fractions with DateTime objects (create_from_format)
14 object(DateTime)#%d (%d) {
22 object(DateTime)#%d (%d) {
H A Ddate_time_fractions_serialize.phpt2 Fractions with DateTime objects (Serialization)
17 O:8:"DateTime":3:{s:4:"date";s:26:"2016-10-03 12:47:18.819313";s:13:"timezone_type";i:3;s:8:"timezo…
18 object(DateTime)#2 (%d) {
H A Dgh9880.phpt2 Bug GH-9880 (DateTime diff returns wrong sign on day count when using a timezone)
8 $nowTime = new DateTime();
11 $dateTime = new DateTime();
H A Dbug51866.phpt19 $d = DateTime::createFromFormat($format, $str);
21 var_dump(DateTime::getLastErrors());
48 object(DateTime)#%d (3) {
74 object(DateTime)#%d (3) {
100 object(DateTime)#%d (3) {
132 object(DateTime)#%d (3) {
H A DDateTime_set_state.phpt2 Test __set_state magic method for recreating a DateTime object
8 $datettimeObject = new DateTime('2017-10-06 23:30:00', new DateTimezone('UTC'));
18 object(DateTime)#%d (3) {
H A Ddate-lenient-create.phpt47 DateTime Object
68 DateTime Object
89 DateTime Object
110 DateTime Object
117 DateTime Object
H A DDateTime_extends_basic1.phpt2 Test DateTime class inheritance
9 echo "*** Testing basic DateTime inheritance() ***\n";
12 class DateTimeExt extends DateTime
37 *** Testing basic DateTime inheritance() ***
H A DDateTime_setISODate_basic1.phpt2 Test DateTime::setISODate() function : basic functionality
5 echo "*** Testing DateTime::setISODate() : basic functionality ***\n";
11 $datetime = new DateTime("2009-01-30 17:57:32");
27 *** Testing DateTime::setISODate() : basic functionality ***
H A Ddate_period.phpt6 $db = new DateTime( '2008-01-01' );
7 $de = new DateTime( '2008-12-31' );
17 $db = new DateTime( '2007-12-31' );
18 $de = new DateTime( '2009-12-31 23:59:59' );
H A Ddate_period_set_state1.phpt8 "start" => new DateTime("2022-07-14 12:00:00", new DateTimeZone("UTC")),
9 "end" => new DateTime("2022-07-16 12:00:00", new DateTimeZone("UTC")),
24 object(DateTime)#%d (%d) {
35 object(DateTime)#%d (%d) {
H A Dbug52577.phpt12 $date = new DateTime('@'.$unixtime);
13 echo "DateTime(PHP Class): ".$date->format($date_format);
19 DateTime(PHP Class): Fri, 06 Aug 2010 21:00:00 +0000
H A Dbug66545.phpt2 Bug #66545 (DateTime)
11 $d1 = new DateTime('now',new DateTimeZone('Europe/Paris'));
12 $d2 = new DateTime('now',new DateTimeZone('Europe/Paris'));
H A Dbug68669.phpt2 DateTime::createFromFormat() does not allow NULL $timezone
7 var_dump(DateTime::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null));
11 object(DateTime)#1 (3) {
/php-src/Zend/tests/
H A Darray_multisort_exception.phpt5 $array = [1 => new DateTime(), 0 => new DateTime()];
9 Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in %s:%d
H A Ddeprecation_to_exception_during_inheritance.phpt14 $class = new class extends DateTime {
20 … inheritance of DateTime: Uncaught Exception: Return type of DateTime@anonymous::getTimezone() sho…
/php-src/ext/intl/tests/
H A Ddateformat_format.phpt321 Date is: \DateTime::__set_state(array(
329 Date is: \DateTime::__set_state(array(
337 Date is: \DateTime::__set_state(array(
345 Date is: \DateTime::__set_state(array(
351 Formatted DateTime is : 12/31/09 3:02 PM
353 Date is: \DateTime::__set_state(array(
361 Date is: \DateTime::__set_state(array(
369 Date is: \DateTime::__set_state(array(
377 Date is: \DateTime::__set_state(array(
385 Date is: \DateTime::__set_state(array(
[all …]

Completed in 26 milliseconds

12345678910>>...16