mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- Change this test case because non-6 digits are supported now, and clarify
that the "1" doesn't show because the precision isn't high enough. (Same happens if you change it to 9).
This commit is contained in:
parent
abd232c671
commit
a2ad4ea8b5
1 changed files with 3 additions and 3 deletions
|
@ -9,12 +9,12 @@ $d = date_create_from_format($format, "03-15-2005 12:22:29.000000 PST");
|
||||||
echo $d->format($format), "\n";
|
echo $d->format($format), "\n";
|
||||||
|
|
||||||
$d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
|
$d = date_create_from_format($format, "03-15-2005 12:22:29.001001 PST");
|
||||||
echo $d->format($format), "\n";
|
echo $d->format($format), " (precision isn't enough to show the 1 here)\n";
|
||||||
|
|
||||||
$d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
|
$d = date_create_from_format($format, "03-15-2005 12:22:29.0010 PST");
|
||||||
var_dump( $d );
|
echo $d->format($format), "\n";
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
03-15-2005 12:22:29.000000 PST
|
03-15-2005 12:22:29.000000 PST
|
||||||
|
03-15-2005 12:22:29.001000 PST (precision isn't enough to show the 1 here)
|
||||||
03-15-2005 12:22:29.001000 PST
|
03-15-2005 12:22:29.001000 PST
|
||||||
bool(false)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue