--TEST--
SOAP XML Schema 64: standard date/time types
--EXTENSIONS--
soap
xml
--SKIPIF--
--FILE--
EOF;
$date = gmmktime(1,2,3,4,5,1976);
putenv('TZ=GMT');
test_schema($schema,'type="tns:testType"',array(
'dateTime' => $date,
'time' => $date,
'date' => $date,
'gYearMonth' => $date,
'gYear' => $date,
'gMonthDay' => $date,
'gDay' => $date,
'gMonth' => $date
));
echo "ok";
?>
--EXPECTF--
1976-04-05T01:02:03Z1976-04-05Z1976-04Z1976Z--04-05Z---05Z--04--Z
object(stdClass)#%d (8) {
["dateTime"]=>
string(20) "1976-04-05T01:02:03Z"
["time"]=>
string(9) "01:02:03Z"
["date"]=>
string(11) "1976-04-05Z"
["gYearMonth"]=>
string(8) "1976-04Z"
["gYear"]=>
string(5) "1976Z"
["gMonthDay"]=>
string(8) "--04-05Z"
["gDay"]=>
string(6) "---05Z"
["gMonth"]=>
string(7) "--04--Z"
}
ok