function views_handler_field_time_interval::render

Same name in other branches
  1. 6.x-3.x handlers/views_handler_field_time_interval.inc \views_handler_field_time_interval::render()

Overrides views_handler_field::render

File

handlers/views_handler_field_time_interval.inc, line 43

Class

views_handler_field_time_interval
A handler to provide proper displays for time intervals.

Code

public function render($values) {
    $value = $values->{$this->field_alias};
    return format_interval($value, isset($this->options['granularity']) ? $this->options['granularity'] : 2);
}