You are here

function theme_hds_created_time_interval in Heartbeat 6.4

Formatter for the time ago created display

File

modules/hds/hds.module, line 295
Heartbeat displays module.

Code

function theme_hds_created_time_interval($heartbeatactivity) {
  return '<span class="heartbeat_times">' . format_interval($_SERVER['REQUEST_TIME'] - $heartbeatactivity['object']->timestamp, 2) . ' ' . t('ago') . '</span>';
}