Remove time formatting functions from the format util
The DateFormatter class now has these functions. refs #6778
This commit is contained in:
parent
9477fdcea4
commit
2eb93d0309
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue