Remove time formatting functions from the format util

The DateFormatter class now has these functions.

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-19 09:56:48 +02:00
parent 9477fdcea4
commit 2eb93d0309
1 changed files with 0 additions and 27 deletions

View File

@ -113,33 +113,6 @@ class Format
return $prefix . self::showHourMin(abs($diff), $includePrefix);
}
/**
* (non-PHPDoc)
* @see \Icinga\Date\DateFormatter::timeAgo() For the method description.
*/
public static function timeAgo($time)
{
return DateFormatter::create(DateFormatter::AGO)->format($time);
}
/**
* (non-PHPDoc)
* @see \Icinga\Date\DateFormatter::timeUntil() For the method description.
*/
public static function timeUntil($time)
{
return DateFormatter::create(DateFormatter::UNTIL)->format($time);
}
/**
* (non-PHPDoc)
* @see \Icinga\Date\DateFormatter::timeSince() For the method description.
*/
public static function timeSince($time)
{
return DateFormatter::create(DateFormatter::SINCE)->format($time);
}
protected static function formatForUnits($value, & $units, $base)
{
$sign = '';