/PHP-7.1/ext/xmlrpc/tests/ |
H A D | bug44996.phpt | 2 Bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime) 8 function DecodeDatetime($datetime) { 9 print "\nISO 8601 datetime $datetime\n"; 21 ISO 8601 datetime 20010909T01:46:40Z 25 [xmlrpc_type] => datetime 29 ISO 8601 datetime 20010909T00:46:40-01 33 [xmlrpc_type] => datetime 37 ISO 8601 datetime 2001-09-09T08:46:40+07:00 41 [xmlrpc_type] => datetime 45 ISO 8601 datetime 2001-09-08T21:46:40-0400 [all …]
|
H A D | bug68027.phpt | 11 xmlrpc_set_type($d, 'datetime'); 13 $datetime = "2001-0-08T21:46:40-0400"; 14 …rsion=\"1.0\"?><methodResponse><params><param><value><dateTime.iso8601>$datetime</dateTime.iso8601… 17 $datetime = "34770-0-08T21:46:40-0400"; 18 …rsion=\"1.0\"?><methodResponse><params><param><value><dateTime.iso8601>$datetime</dateTime.iso8601… 28 string(8) "datetime" 35 [xmlrpc_type] => datetime 41 [xmlrpc_type] => datetime
|
/PHP-7.1/ext/date/tests/ |
H A D | bug73489.phpt | 6 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC')); 7 var_dump($datetime->getTimestamp()); 8 $datetime->setTimeZone(new DateTimeZone('-03:00')); 9 $datetime->setTimeZone(new DateTimeZone('-03:00')); 10 var_dump($datetime->getTimestamp()); 13 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC')); 14 var_dump($datetime->getTimestamp()); 15 $datetime->setTimeZone(new DateTimeZone('-03:00')); 16 $datetime->getTimestamp(); 17 $datetime->setTimeZone(new DateTimeZone('-03:00')); [all …]
|
H A D | DateTime_setTime_basic1.phpt | 17 $datetime = new DateTime("2009-01-31 15:14:10"); 19 echo "Initial date: " . $datetime ->format(DATE_RFC2822) . "\n"; 21 $datetime->setTime(17, 20); 22 echo "After modification1 " . $datetime ->format(DATE_RFC2822) . "\n"; 24 $datetime->setTime(19, 05, 59); 25 echo "After modification2 " . $datetime ->format(DATE_RFC2822) . "\n"; 27 $datetime->setTime(24, 10); 28 echo "After modification3 " . $datetime ->format(DATE_RFC2822) . "\n"; 30 $datetime->setTime(47, 35, 47); 31 echo "After modification4 " . $datetime ->format(DATE_RFC2822) . "\n"; [all …]
|
H A D | date_time_set_basic1.phpt | 17 $datetime = date_create("2009-01-31 15:14:10"); 19 echo "Initial date: " . date_format($datetime, DATE_RFC2822) . "\n"; 21 date_time_set($datetime, 17, 20); 22 echo "After modification1 " . date_format($datetime, DATE_RFC2822) . "\n"; 24 date_time_set($datetime, 19, 05, 59); 25 echo "After modification2 " . date_format($datetime, DATE_RFC2822) . "\n"; 27 date_time_set($datetime, 24, 10); 28 echo "After modification3 " . date_format($datetime, DATE_RFC2822) . "\n"; 30 date_time_set($datetime, 47, 35, 47); 31 echo "After modification4 " . date_format($datetime, DATE_RFC2822) . "\n"; [all …]
|
H A D | date_modify_basic1.phpt | 17 $datetime = date_create("2009-01-31 14:28:41"); 19 date_modify($datetime, "+1 day"); 20 echo "After modification 1: " . date_format($datetime, "D, d M Y") . "\n"; 22 date_modify($datetime, "+1 week 2 days 4 hours 2 seconds"); 23 echo "After modification 2: " . date_format($datetime, "D, d M Y H:i:s") . "\n"; 25 date_modify($datetime, "next Thursday"); 26 echo "After modification 3: " . date_format($datetime, "D, d M Y") . "\n"; 28 date_modify($datetime, "last Sunday"); 29 echo "After modification 4: " . date_format($datetime, "D, d M Y") . "\n";
|
H A D | DateTime_modify_basic1.phpt | 17 $datetime = new DateTime("2009-01-31 14:28:41"); 19 $datetime->modify("+1 day"); 20 echo "After modification 1: " . $datetime->format("D, d M Y") . "\n"; 22 $datetime->modify("+1 week 2 days 4 hours 2 seconds"); 23 echo "After modification 2: " . $datetime->format("D, d M Y H:i:s") . "\n"; 25 $datetime->modify("next Thursday"); 26 echo "After modification 3: " . $datetime->format("D, d M Y") . "\n"; 28 $datetime->modify("last Sunday"); 29 echo "After modification 4: " . $datetime->format("D, d M Y") . "\n";
|
H A D | date_isodate_set_basic1.phpt | 17 $datetime = date_create("2009-01-30 17:57:32"); 20 date_isodate_set($datetime, 2008, 40); 21 echo "Week 40 of 2009 is in \"" . date_format($datetime, "F") . "\"\n"; 24 date_isodate_set($datetime, 2009, 30, 3); 25 echo "Week 30 day 3 of 2009 is \"" . date_format($datetime, "D M j") . "\"\n"; 28 date_isodate_set($datetime, 2008, 30, 3); 29 echo "..same day last year was \"" . date_format($datetime, "D M j") . "\"\n";
|
H A D | DateTime_setISODate_basic1.phpt | 17 $datetime = new DateTime("2009-01-30 17:57:32"); 20 $datetime->setISODate(2008, 40); 21 echo "Week 40 of 2009 is in \"" . $datetime->format("F") . "\"\n"; 24 $datetime->setISODate(2009, 30, 3); 25 echo "Week 30 day 3 of 2009 is \"" . $datetime->format("D M j") . "\"\n"; 28 $datetime->setISODate(2008, 30, 3); 29 echo "..same day last year was \"" . $datetime->format("D M j") . "\"\n";
|
H A D | date_timezone_set_basic1.phpt | 16 $datetime = date_create("2009-01-30 17:57:32"); 17 $tz = date_timezone_get($datetime); 20 $datetime = date_create("2009-01-30 22:57:32"); 23 date_timezone_set($datetime, $la_time); 24 $tz = date_timezone_get($datetime);
|
H A D | date_date_set_basic1.phpt | 16 $datetime = date_create("2009-01-30 19:34:10"); 18 echo date_format($datetime, DATE_RFC2822) . "\n"; 20 date_date_set($datetime, 2008, 02, 01); 22 echo date_format($datetime, DATE_RFC2822) . "\n";
|
H A D | DateTime_setDate_basic1.phpt | 16 $datetime = new DateTime("2009-01-30 19:34:10"); 18 echo $datetime->format(DATE_RFC2822) . "\n"; 20 $datetime->setDate(2008, 02, 01); 22 echo $datetime->format(DATE_RFC2822) . "\n";
|
H A D | DateTime_setTimezone_basic1.phpt | 16 $datetime = new DateTime("2009-01-30 17:57:32"); 17 echo "Default timezone: " . date_timezone_get($datetime)->getName() . "\n"; 20 $datetime->setTimezone($la_time); 21 echo "New timezone: " . date_timezone_get($datetime)->getName() . "\n";
|
H A D | date_date_set_error.phpt | 19 $datetime = date_create("2009-01-30 19:34:10"); 23 var_dump( date_date_set($datetime) ); 24 var_dump( date_date_set($datetime, $year) ); 25 var_dump( date_date_set($datetime, $year, $month) ); 29 var_dump( date_date_set($datetime, $year, $month, $day, $extra_arg) );
|
H A D | DateTime_setDate_error.phpt | 15 $datetime = new DateTime("2009-01-30 19:34:10"); 18 var_dump( $datetime->setDate() ); 24 var_dump( $datetime->setDate($year) ); 25 var_dump( $datetime->setDate($year, $month) ); 29 var_dump( $datetime->setDate($year, $month, $day, $extra_arg) );
|
H A D | bug43527.phpt | 6 $datetime = new DateTime('Fri, 07 Dec 2007 19:05:14 +1000'); 7 echo $datetime->getTimezone()->getName(), "\n";
|
H A D | bug63435.phpt | 8 $datetime = Datetime::createFromFormat("u", sprintf("%06ld", $i)); 9 $res = $datetime->format("u");
|
H A D | DateTime_setTime_error.phpt | 15 $datetime = date_create("2009-01-31 15:34:10"); 18 var_dump( $datetime->setTime() ); 22 var_dump( $datetime->setTime($hour) ); 29 var_dump( $datetime->setTime($hour, $min, $sec, $microseconds, $extra_arg) );
|
H A D | bug64887.phpt | 25 $datetime = new DateTimeImmutable( "2016-10-07 13:25:50" ); 29 echo $datetime->modify( $test )->format( 'Y-m-d H:i:s.u' ), "\n";
|
H A D | DateTime_setISODate_error.phpt | 15 $datetime = new DateTime("2009-01-30 19:34:10"); 20 var_dump( $datetime->setISODate() ); 24 var_dump( $datetime->setISODate($year) ); 30 var_dump( $datetime->setISODate($year, $week, $day, $extra_arg) );
|
H A D | DateTime_setTimezone_error.phpt | 15 $datetime = new DateTime("2009-01-30 17:57:32"); 18 var_dump( $datetime->setTimezone() ); 23 var_dump( $datetime->setTimezone($timezone, $extra_arg) );
|
H A D | date_time_set_error.phpt | 19 $datetime = date_create("2009-01-31 15:34:10"); 21 var_dump( date_time_set($datetime) ); 22 var_dump( date_time_set($datetime, $hour) ); 29 var_dump( date_time_set($datetime, $hour, $min, $sec, $microseconds, $extra_arg) );
|
H A D | DateTime_getOffset_error.phpt | 18 $datetime = new DateTime("2009-01-30 19:34:10"); 21 var_dump( $datetime->getOffset($extra_arg) );
|
/PHP-7.1/ext/intl/common/ |
H A D | common_date.cpp | 128 php_date_obj *datetime; local 142 datetime = Z_PHPDATE_P(z); 143 *millis = U_MILLIS_PER_SECOND * ((double)Z_LVAL(retval) + datetime->time->f); 148 php_date_obj *datetime; local 149 datetime = Z_PHPDATE_P(z); 150 if (!datetime->time) { 158 if (!datetime->time->is_localtime) { 161 *tz = timezone_convert_datetimezone(datetime->time->zone_type, 162 datetime, 1, NULL, func);
|
/PHP-7.1/ext/pdo_dblib/tests/ |
H A D | types.phpt | 29 CAST('2030-01-01 23:59:59' AS DATETIME) AS [datetime], 42 var_dump($row['datetime'] === '2030-01-01 23:59:59'); 55 var_dump($row['datetime'] === '2030-01-01 23:59:59');
|