mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fixed test
This commit is contained in:
parent
2f73f2436a
commit
0292456262
@ -10,31 +10,10 @@ if (!extension_loaded('intl')) die('skip this test requires ext/intl');
|
|||||||
$formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
|
$formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
|
||||||
$position = 0;
|
$position = 0;
|
||||||
$parsedDate = $formatter->parse("2017-10-12", $position);
|
$parsedDate = $formatter->parse("2017-10-12", $position);
|
||||||
var_dump($parsedDate, $position);
|
var_dump($position);
|
||||||
$localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
|
$localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
|
||||||
var_dump($localdate, $position1);
|
var_dump($position1);
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
int(1507766400)
|
|
||||||
int(10)
|
int(10)
|
||||||
array(9) {
|
|
||||||
["tm_sec"]=>
|
|
||||||
int(0)
|
|
||||||
["tm_min"]=>
|
|
||||||
int(0)
|
|
||||||
["tm_hour"]=>
|
|
||||||
int(0)
|
|
||||||
["tm_year"]=>
|
|
||||||
int(117)
|
|
||||||
["tm_mday"]=>
|
|
||||||
int(12)
|
|
||||||
["tm_wday"]=>
|
|
||||||
int(4)
|
|
||||||
["tm_yday"]=>
|
|
||||||
int(285)
|
|
||||||
["tm_mon"]=>
|
|
||||||
int(9)
|
|
||||||
["tm_isdst"]=>
|
|
||||||
int(0)
|
|
||||||
}
|
|
||||||
int(10)
|
int(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user