Home
last modified time | relevance | path

Searched refs:datetime (Results 1 – 25 of 64) sorted by relevance

123

/PHP-5.5/ext/xmlrpc/tests/
H A Dbug44996.phpt2 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 Dbug68027.phpt11 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
H A Dbug45226.phpt11 xmlrpc_set_type($d, 'datetime');
15 xmlrpc_set_type($d, 'datetime');
/PHP-5.5/ext/date/tests/
H A DDateTime_setTime_basic1.phpt17 $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 Ddate_time_set_basic1.phpt17 $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 Ddate_modify_basic1.phpt17 $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 DDateTime_modify_basic1.phpt17 $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 DDateTime_setISODate_basic1.phpt17 $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 Ddate_isodate_set_basic1.phpt17 $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 Ddate_timezone_set_basic1.phpt16 $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 Ddate_date_set_basic1.phpt16 $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 DDateTime_setDate_basic1.phpt16 $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 DDateTime_setTimezone_basic1.phpt16 $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 DDateTime_setDate_error.phpt15 $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 Ddate_date_set_error.phpt19 $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 Dbug43527.phpt6 $datetime = new DateTime('Fri, 07 Dec 2007 19:05:14 +1000');
7 echo $datetime->getTimezone()->getName(), "\n";
H A Dbug63435.phpt8 $datetime = Datetime::createFromFormat("u", sprintf("%06ld", $i));
9 $res = $datetime->format("u");
H A DDateTime_setTime_error.phpt15 $datetime = date_create("2009-01-31 15:34:10");
18 var_dump( $datetime->setTime() );
22 var_dump( $datetime->setTime($hour) );
28 var_dump( $datetime->setTime($hour, $min, $sec, $extra_arg) );
H A DDateTime_setISODate_error.phpt15 $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 DDateTime_setTimezone_error.phpt15 $datetime = new DateTime("2009-01-30 17:57:32");
18 var_dump( $datetime->setTimezone() );
23 var_dump( $datetime->setTimezone($timezone, $extra_arg) );
H A Ddate_time_set_error.phpt19 $datetime = date_create("2009-01-31 15:34:10");
21 var_dump( date_time_set($datetime) );
22 var_dump( date_time_set($datetime, $hour) );
28 var_dump( date_time_set($datetime, $hour, $min, $sec, $extra_arg) );
H A DDateTime_getOffset_error.phpt18 $datetime = new DateTime("2009-01-30 19:34:10");
21 var_dump( $datetime->getOffset($extra_arg) );
H A Ddate_timezone_set_error.phpt19 $datetime = date_create("2009-01-30 17:57:32");
20 var_dump( date_timezone_set($datetime) );
25 var_dump( date_timezone_set($datetime, $timezone, $extra_arg) );
H A Ddate_modify_error.phpt20 $datetime = date_create("2009-01-30 19:34:10");
23 var_dump( date_modify($datetime) );
28 var_dump( date_modify($datetime, $modify, $extra_arg) );
/PHP-5.5/ext/intl/common/
H A Dcommon_date.cpp147 php_date_obj *datetime; local
148 datetime = (php_date_obj*)zend_object_store_get_object(z TSRMLS_CC);
149 if (!datetime->time) {
157 if (!datetime->time->is_localtime) {
160 *tz = timezone_convert_datetimezone(datetime->time->zone_type,
161 datetime, 1, NULL, func TSRMLS_CC);

Completed in 24 milliseconds

123