mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
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);
|
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)
|
protected static function formatForUnits($value, & $units, $base)
|
||||||
{
|
{
|
||||||
$sign = '';
|
$sign = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user