about summary refs log tree commit diff stats
path: root/app/helpers/puzzles_helper.rb
blob: ded1e8df27c16bb366c1a61549a41df69c494f4b (plain) (blame)
1
2
3
4
5
6
7
module PuzzlesHelper

  def humanize_interval(seconds)
    "#{(seconds / 60).to_s.rjust(2, '0')}:#{(seconds % 60).to_s.rjust(2, '0')}"
  end

end