mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix doc bug #53706 (Misleading example on datediff format page).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307395 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5fe60620d9
commit
1d9042e25c
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@
|
|||
$datetime1 = new DateTime('2009-10-11');
|
||||
$datetime2 = new DateTime('2009-10-13');
|
||||
$interval = $datetime1->diff($datetime2);
|
||||
echo $interval->format('%R%d days');
|
||||
echo $interval->format('%R%a days');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -79,7 +79,7 @@ echo $interval->format('%R%d days');
|
|||
$datetime1 = date_create('2009-10-11');
|
||||
$datetime2 = date_create('2009-10-13');
|
||||
$interval = date_diff($datetime1, $datetime2);
|
||||
echo $interval->format('%R%d days');
|
||||
echo $interval->format('%R%a days');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue