/php-src/ext/date/tests/ |
H A D | bug73837.phpt | 2 Bug #73837: Milliseconds in DateTime() 10 $prev_dt = new DateTime(); 12 $dt = new DateTime();
|
H A D | date_period_unserialize2.phpt | 6 $start = new DateTime("2022-07-14 00:00:00", new DateTimeZone("UTC")); 8 $end = new DateTime("2022-07-16 00:00:00", new DateTimeZone("UTC")); 14 "start" => new DateTime,
|
H A D | DateTime_modify_invalid_format.phpt | 2 DateTime::modify() with empty string as format 6 $datetime = new DateTime; 18 DateMalformedStringException: DateTime::modify(): Failed to parse time string () at position 0 ( ):…
|
H A D | DateTime_compare_basic1.phpt | 2 Test of compare object handler for DateTime objects 6 echo "Simple test for DateTime compare object handler\n"; 11 class DateTimeExt1 extends DateTime { 14 class DateTimeExt2 extends DateTime{ 22 $obj1 = new DateTime("2009-02-12 12:47:41 GMT"); 53 Simple test for DateTime compare object handler
|
H A D | DateTime_modify_basic1.phpt | 2 Test DateTime::modify() function : basic functionality 8 echo "*** Testing DateTime::modify() : basic functionality ***\n"; 11 $datetime = new DateTime("2009-01-31 14:28:41"); 27 *** Testing DateTime::modify() : basic functionality ***
|
H A D | bug68078_negative.phpt | 7 $earlyDate1 = DateTime::createFromFormat('U.u', '1.8642')->modify('-5 seconds'); 8 $earlyDate2 = DateTime::createFromFormat('U.u', '1.2768')->modify('-5 seconds'); 9 $earlyDate3 = DateTime::createFromFormat('U.u', '1.2768')->modify('-5 seconds');
|
H A D | bug75857.phpt | 7 $longDate = new DateTime('now', new DateTimeZone('America/Argentina/ComodRivadavia')); 8 $mediumDate = new DateTime('now', new DateTimeZone('America/Indiana/Indianapolis')); 9 $smallDate = new DateTime('now', new DateTimeZone('America/Sao_Paulo'));
|
H A D | examine_diff.inc | 4 * Helper for the DateTime diff/days/math tests 21 * @param string|DateTime $end_date the end date in YYYY-MM-DD format 22 * (can include time HH:MM:SS) or a DateTime object 23 * @param string|DateTime $start_date the start date in YYYY-MM-DD format 24 * (can include time HH:MM:SS) or a DateTime object 37 $start = new DateTime($start_date); 44 $end = new DateTime($end_date);
|
H A D | bug45543.phpt | 2 Test for bug #45543: DateTime::setTimezone cannot set timezones without ID. 14 $d1 = new DateTime($test_date); 15 $d2 = new DateTime('2008-01-01 12:00:00 UTC');
|
H A D | bug52062-64bit.phpt | 2 Bug #52062 (large timestamps with DateTime::getTimestamp and DateTime::setTimestamp) (64 bit) 11 $d = new DateTime('@100000000000');
|
H A D | bug55253.phpt | 2 Bug #55253 (DateTime::add() and sub() result -1 hour on objects with time zone type 2) 12 $date3 = new DateTime('2010-10-04 02:18:48'); 13 $date2 = new DateTime('2010-10-04 02:18:48 EDT'); 26 $date3 = new DateTime('2010-10-04 04:19:48'); 27 $date2 = new DateTime('2010-10-04 04:19:48 EDT');
|
H A D | bug52062.phpt | 2 Bug #52062 (large timestamps with DateTime::getTimestamp and DateTime::setTimestamp) (32 bit) 11 $d = new DateTime('@100000000000'); 39 TypeError: DateTime::setTimestamp(): Argument #1 ($timestamp) must be of type int, float given
|
H A D | bug41523-64bit.phpt | 11 var_dump( $dt = new DateTime('0000-00-00 00:00:00') ); 12 echo $dt->format( DateTime::ISO8601 ), "\n"; 47 object(DateTime)#1 (3) {
|
H A D | DateTime_format_basic1.phpt | 2 Test DateTime::format() function : basic functionality 8 echo "*** Testing DateTime::format() : basic functionality ***\n"; 9 $date = new DateTime("2005-07-14 22:30:41"); 23 *** Testing DateTime::format() : basic functionality ***
|
H A D | bug48476.phpt | 2 Bug #48476 (cloning extended DateTime class without calling parent::__constr crashed PHP) 5 class MyDateTime extends DateTime { 35 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized… 36 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
|
H A D | 012.phpt | 17 object(DateTime)#1 (3) { 26 object(DateTime)#1 (3) { 35 object(DateTime)#1 (3) {
|
H A D | 013.phpt | 18 object(DateTime)#%d (3) { 27 object(DateTime)#1 (3) { 36 object(DateTime)#1 (3) {
|
H A D | 014.phpt | 20 object(DateTime)#%d (3) { 36 … timezone_offset_get(): Argument #1 ($object) must be of type DateTimeZone, DateTime given in %s:%d 38 #0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone))
|
/php-src/ext/intl/tests/ |
H A D | calendar_fromDateTime_error.phpt | 16 class A extends DateTime { 22 $date = new DateTime('2012-01-01 00:00:00 +24:00'); 25 $date = new DateTime('2012-01-01 00:00:00 WEST'); 30 Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: DateTime object is unconstructed in …
|
H A D | dateformat_format_variant2.phpt | 321 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 …]
|
H A D | dateformat_format_variant3.phpt | 323 Date is: \DateTime::__set_state(array( 331 Date is: \DateTime::__set_state(array( 339 Date is: \DateTime::__set_state(array( 347 Date is: \DateTime::__set_state(array( 353 Formatted DateTime is : 12/31/09, 3:02 PM 355 Date is: \DateTime::__set_state(array( 363 Date is: \DateTime::__set_state(array( 371 Date is: \DateTime::__set_state(array( 379 Date is: \DateTime::__set_state(array( 387 Date is: \DateTime::__set_state(array( [all …]
|
H A D | bug74298.phpt | 7 var_dump((new \DateTime('2017-01-01 01:02:03.123456'))->format('Y-m-d\TH:i:s.u')); 16 ))->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC')))); 25 )->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
|
/php-src/Zend/tests/type_declarations/variance/internal_parent/ |
H A D | unresolvable_inheritance_check_return.phpt | 6 class Test extends DateTime { 12 …ezone = null): Wrong and DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZon…
|
/php-src/ext/date/ |
H A D | php_date_arginfo.h | 97 ZEND_ARG_OBJ_INFO(0, object, DateTime, 0) 102 ZEND_ARG_OBJ_INFO(0, object, DateTime, 0) 567 ZEND_METHOD(DateTime, __construct); 568 ZEND_METHOD(DateTime, __serialize); 569 ZEND_METHOD(DateTime, __unserialize); 570 ZEND_METHOD(DateTime, __wakeup); 571 ZEND_METHOD(DateTime, __set_state); 575 ZEND_METHOD(DateTime, modify); 576 ZEND_METHOD(DateTime, sub); 577 ZEND_METHOD(DateTime, getMicrosecond); [all …]
|
/php-src/Zend/tests/ |
H A D | closure_call_internal.phpt | 6 var_dump(Closure::fromCallable([new DateTime(), 'getTimestamp'])->call(new DateTime('@123')));
|