Sha256: b684a42ac833c8b554af782fc3fd460dca8641ec62d6b05765bfb50ca66da318

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 Bytes

Contents

module ResqueWeb
  module Plugins
    module ResqueScheduler
      # Helper methods for the delayed jobs UI
      module DelayedHelper
        # Outputs the time in a human readable way.
        #
        # @example
        #   format_time(Time.at(timestamp))
        #
        # @param t [Time]
        # @return [String] A string in this  format: 2015-04-12 12:27:05 +0100
        #
        def format_time(t)
          t.strftime('%Y-%m-%d %H:%M:%S %z')
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
resque-scheduler-web-1.1.0 app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb
resque-scheduler-web-1.0.1 app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb
resque-scheduler-web-1.0.0 app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb
resque-scheduler-web-0.0.4 app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb
resque-scheduler-web-0.0.3 app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb
resque-scheduler-web-0.0.2 app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb