Method: TempestTime::Helpers::TimeHelper#formatted_time
- Defined in:
- lib/tempest_time/helpers/time_helper.rb
#formatted_time(seconds) ⇒ Object
19 20 21 22 |
# File 'lib/tempest_time/helpers/time_helper.rb', line 19 def formatted_time(seconds) return "#{seconds / 60} minutes" if seconds < 3600 "#{(seconds / 3600.to_f).round(2)} hours" end |