Home
last modified time | relevance | path

Searched refs:DateTime (Results 126 – 150 of 380) sorted by relevance

12345678910>>...16

/php-src/ext/date/tests/
H A Dbug73837.phpt2 Bug #73837: Milliseconds in DateTime()
10 $prev_dt = new DateTime();
12 $dt = new DateTime();
H A Ddate_period_unserialize2.phpt6 $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 DDateTime_modify_invalid_format.phpt2 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 DDateTime_compare_basic1.phpt2 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 DDateTime_modify_basic1.phpt2 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 Dbug68078_negative.phpt7 $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 Dbug75857.phpt7 $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 Dexamine_diff.inc4 * 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 Dbug45543.phpt2 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 Dbug52062-64bit.phpt2 Bug #52062 (large timestamps with DateTime::getTimestamp and DateTime::setTimestamp) (64 bit)
11 $d = new DateTime('@100000000000');
H A Dbug55253.phpt2 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 Dbug52062.phpt2 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 Dbug41523-64bit.phpt11 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 DDateTime_format_basic1.phpt2 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 Dbug48476.phpt2 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 D012.phpt17 object(DateTime)#1 (3) {
26 object(DateTime)#1 (3) {
35 object(DateTime)#1 (3) {
H A D013.phpt18 object(DateTime)#%d (3) {
27 object(DateTime)#1 (3) {
36 object(DateTime)#1 (3) {
H A D014.phpt20 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 Dcalendar_fromDateTime_error.phpt16 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 Ddateformat_format_variant2.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 …]
H A Ddateformat_format_variant3.phpt323 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 Dbug74298.phpt7 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 Dunresolvable_inheritance_check_return.phpt6 class Test extends DateTime {
12 …ezone = null): Wrong and DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZon…
/php-src/ext/date/
H A Dphp_date_arginfo.h97 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 Dclosure_call_internal.phpt6 var_dump(Closure::fromCallable([new DateTime(), 'getTimestamp'])->call(new DateTime('@123')));

Completed in 25 milliseconds

12345678910>>...16