Skip to content

Commit

Permalink
Update time.rst
Browse files Browse the repository at this point in the history
Fix method name
  • Loading branch information
Zehir authored Sep 27, 2016
1 parent 84114de commit 3cacf4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fr/core-libraries/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,16 @@ utilisant ``wasWithinLast()`` et ``isWithinNext()``::
// A moins de 2 semaines.
echo $time->isWithinNext('2 weeks');

.. php:method:: wasWithinPast($interval)
.. php:method:: wasWithinLast($interval)
Vous pouvez aussi comparer une instance ``Time`` dans un intervalle dans le
passé::

// Dans les 2 derniers jours.
echo $time->wasWithinPast(2);
echo $time->wasWithinLast(2);

// Dans les 2 dernières semaines.
echo $time->wasWithinPast('2 weeks');
echo $time->wasWithinLast('2 weeks');

.. end-time
Expand Down

0 comments on commit 3cacf4c

Please sign in to comment.