31 $result = FormatDate(
'idiff', time(), time());
37 if ($duration >= self::DAY_LENGTH)
39 $result .= FormatDate(
'ddiff', time(), $duration + time()) .
" ";
41 $duration = $duration % self::DAY_LENGTH;
42 if ($duration >= self::HOUR_LENGTH)
44 $result .= FormatDate(
'Hdiff', time(), $duration + time()) .
" ";
46 $duration = $duration % self::HOUR_LENGTH;
47 if ($duration >= self::MINUTE_LENGTH)
49 $result .= FormatDate(
'idiff', time(), $duration + time());