diff --git a/application/views/helpers/TimeUnless.php b/application/views/helpers/TimeUnless.php new file mode 100644 index 000000000..2a9b4c6ee --- /dev/null +++ b/application/views/helpers/TimeUnless.php @@ -0,0 +1,46 @@ + + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + * + */ +// {{{ICINGA_LICENSE_HEADER}}} + +use Icinga\Util\Format; + +/** + * Class Zend_View_Helper_TimeSince + */ +class Zend_View_Helper_TimeUnless extends Zend_View_Helper_Abstract +{ + public function timeUnless($timestamp) + { + return '' + . Format::timeUntil($timestamp) + . ''; + } +} +// @codingStandardsIgnoreStop