Skip to content

Commit

Permalink
Renaming remainingTime() to fromNow()
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Jul 17, 2015
1 parent 1449eff commit f411e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/I18n/Time.php
Expand Up @@ -804,7 +804,7 @@ public static function parseTime($time, $format = null)
* @param DateTime $datetime The date to get the remaining time from.
* @return DateInterval|boolean The DateInterval object representing the difference between the two dates or FALSE on failure.
*/
public static function remainingTime($datetime)
public static function fromNow($datetime)
{
$timeNow = new Time();
return $timeNow->diff($datetime);
Expand Down

0 comments on commit f411e64

Please sign in to comment.