{$this->field_alias}); $format = $this->options['date_format']; if ($format == 'custom' || $format == 'time ago') { $custom_format = $this->options['custom_date_format']; } switch ($format) { case 'time ago': return $value ? t('%time ago', array('%time' => format_interval(time() - $value, is_numeric($custom_format) ? $custom_format : 2))) : theme('views_nodate'); case 'custom': return $value ? format_date($value, $format, $custom_format) : theme('views_nodate'); default: return $value ? format_date($value, $format) : theme('views_nodate'); } } }