Home
last modified time | relevance | path

Searched refs:DateTime (Results 226 – 250 of 380) sorted by relevance

12345678910>>...16

/php-src/ext/intl/tests/
H A Dmsgfmt_format_datetime.phpt2 MessageFormatter::format(): DateTime accepted to format dates and times
18 $dt = new DateTime("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
H A Dcalendar_fromDateTime_basic.phpt20 $cal = IntlCalendar::fromDateTime(new DateTime('2012-01-01 00:00:00 PST'), "pt_PT");
30 $cal = intlcal_from_date_time(new DateTime('2012-01-01 00:00:00 +03:40'));
/php-src/ext/date/tests/
H A Dbug53437_var4.phpt7 $dt = new DateTime('2009-10-11');
9 $df = $dt->diff(new DateTime('2009-10-13'));
H A Dbug78055.phpt5 $start = new DateTime('2018-12-31 00:00:00');
6 $end = new DateTime('2021-12-31 00:00:00');
H A Dbug52113.phpt7 $start = new DateTime('2003-01-02 08:00:00');
8 $end = new DateTime('2003-01-02 12:00:00');
94 object(DateTime)#%d (%d) {
160 object(DateTime)#%d (%d) {
H A DDatePeriod_set_state.phpt9 new DateTime('2017-10-06 23:30', new DateTimeZone('UTC')),
24 object(DateTime)#%d (%d) {
H A DDateTimeZone_clone_basic1.phpt9 echo "*** Testing clone on DateTime objects ***\n";
30 *** Testing clone on DateTime objects ***
H A Dbug52290.phpt2 Bug #52290 (setDate, setISODate, setTime works wrong when DateTime created from timestamp)
9 $dt = new DateTime('@'.$ts);
H A DDateTimeImmutable_createFromInterface_exceptions.phpt7 class MyDateTime extends DateTime
36 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
H A Dbug51096.phpt22 $date = new DateTime( '2010-03-06 15:21 UTC' );
23 echo '- ', $date->format( DateTime::ISO8601 );
25 echo ' -> ', $date->format( DateTime::ISO8601 ), "\n\n";
H A DDatePeriod_no_advance_on_valid.phpt6 $start = DateTime::createFromFormat('Y-m-d', '2022-01-01');
7 $end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
H A Ddate-time-modify-times.phpt2 Test for DateTime::modify() with absolute time statements
31 ->format( DateTime::RFC2822 ), "\n";
H A Ddate_timestamp_get.phpt18 // Test the DateTime feature alias in function date_timestamp_get().
19 $dateTimeTz = (new DateTime('1970-01-01T00:00:00UTC'))->getTimeStamp();
H A Dossfuzz-55599.txt1 |O:8:"DateTime":1:{i:1;d:2;
H A DDatePeriod_getter.phpt7 $start = new DateTime('2000-01-01 00:00:00', new DateTimeZone('Europe/Berlin'));
8 $end = new DateTime('2000-01-31 00:00:00', new DateTimeZone('UTC'));
H A Dbug79580.phpt11 $dt = DateTime::createFromFormat( 'z Y', $value );
13 echo DateTime::getLastErrors()['errors'][0], "\n";
H A DDateTime_createFromInterface-002.phpt2 Tests for DateTime::createFromInterface with inheritance
7 class MyDateTime extends DateTime {}
H A Dbug-gh11416.phpt10 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
17 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
24 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
H A Dbug74080.phpt7 var_dump(date(\DateTime::RFC7231, $date));
H A Dbug64653.phpt5 $date = new \DateTime('2370-01-31');
H A Dbug65672.phpt9 $period = new class(new DateTime, $interval, new DateTime) extends DatePeriod {
H A DDatePeriod_properties2.phpt8 $period = new DatePeriod(new DateTime, new DateInterval('P1D'), new DateTime);
/php-src/ext/reflection/tests/
H A DReflectionClass_newInstanceWithoutConstructor.phpt21 $class = new ReflectionClass('DateTime');
43 object(DateTime)#%d (0) {
/php-src/ext/pgsql/tests/
H A Dbug71062.phpt19 $date_string_php_iso8601 = date_create('8 Dec 2015 5:38')->format(DateTime::ISO8601);
25 printf("trying format %s \n", DateTime::ISO8601);
/php-src/ext/opcache/tests/jit/
H A Dpreload_bug80634.inc6 parent::__construct(new \DateTime('2020-12-31'), new \DateInterval("P1Y"), 1);

Completed in 46 milliseconds

12345678910>>...16