Module: ResqueWeb::Plugins::ResqueScheduler::DelayedHelper

Defined in:
app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb

Overview

Helper methods for the delayed jobs UI

Instance Method Summary collapse

Instance Method Details

#format_time(t) ⇒ String

Outputs the time in a human readable way.

Examples:

format_time(Time.at(timestamp))

Parameters:

  • t (Time)

Returns:

  • (String)

    A string in this format: 2015-04-12 12:27:05 +0100



14
15
16
# File 'app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb', line 14

def format_time(t)
  t.strftime('%Y-%m-%d %H:%M:%S %z')
end