Searched refs:DateTime (Results 226 – 250 of 380) sorted by relevance
12345678910>>...16
/php-src/ext/intl/tests/ |
H A D | msgfmt_format_datetime.phpt | 2 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 D | calendar_fromDateTime_basic.phpt | 20 $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 D | bug53437_var4.phpt | 7 $dt = new DateTime('2009-10-11'); 9 $df = $dt->diff(new DateTime('2009-10-13'));
|
H A D | bug78055.phpt | 5 $start = new DateTime('2018-12-31 00:00:00'); 6 $end = new DateTime('2021-12-31 00:00:00');
|
H A D | bug52113.phpt | 7 $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 D | DatePeriod_set_state.phpt | 9 new DateTime('2017-10-06 23:30', new DateTimeZone('UTC')), 24 object(DateTime)#%d (%d) {
|
H A D | DateTimeZone_clone_basic1.phpt | 9 echo "*** Testing clone on DateTime objects ***\n"; 30 *** Testing clone on DateTime objects ***
|
H A D | bug52290.phpt | 2 Bug #52290 (setDate, setISODate, setTime works wrong when DateTime created from timestamp) 9 $dt = new DateTime('@'.$ts);
|
H A D | DateTimeImmutable_createFromInterface_exceptions.phpt | 7 class MyDateTime extends DateTime 36 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
|
H A D | bug51096.phpt | 22 $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 D | DatePeriod_no_advance_on_valid.phpt | 6 $start = DateTime::createFromFormat('Y-m-d', '2022-01-01'); 7 $end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
|
H A D | date-time-modify-times.phpt | 2 Test for DateTime::modify() with absolute time statements 31 ->format( DateTime::RFC2822 ), "\n";
|
H A D | date_timestamp_get.phpt | 18 // Test the DateTime feature alias in function date_timestamp_get(). 19 $dateTimeTz = (new DateTime('1970-01-01T00:00:00UTC'))->getTimeStamp();
|
H A D | ossfuzz-55599.txt | 1 |O:8:"DateTime":1:{i:1;d:2;
|
H A D | DatePeriod_getter.phpt | 7 $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 D | bug79580.phpt | 11 $dt = DateTime::createFromFormat( 'z Y', $value ); 13 echo DateTime::getLastErrors()['errors'][0], "\n";
|
H A D | DateTime_createFromInterface-002.phpt | 2 Tests for DateTime::createFromInterface with inheritance 7 class MyDateTime extends DateTime {}
|
H A D | bug-gh11416.phpt | 10 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 17 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 24 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
|
H A D | bug74080.phpt | 7 var_dump(date(\DateTime::RFC7231, $date));
|
H A D | bug64653.phpt | 5 $date = new \DateTime('2370-01-31');
|
H A D | bug65672.phpt | 9 $period = new class(new DateTime, $interval, new DateTime) extends DatePeriod {
|
H A D | DatePeriod_properties2.phpt | 8 $period = new DatePeriod(new DateTime, new DateInterval('P1D'), new DateTime);
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionClass_newInstanceWithoutConstructor.phpt | 21 $class = new ReflectionClass('DateTime'); 43 object(DateTime)#%d (0) {
|
/php-src/ext/pgsql/tests/ |
H A D | bug71062.phpt | 19 $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 D | preload_bug80634.inc | 6 parent::__construct(new \DateTime('2020-12-31'), new \DateInterval("P1Y"), 1);
|
Completed in 46 milliseconds
12345678910>>...16