Method: TempestTime::Helpers::TimeHelper#formatted_time_for_input
- Defined in:
- lib/tempest_time/helpers/time_helper.rb
#formatted_time_for_input(seconds) ⇒ Object
24 25 26 27 |
# File 'lib/tempest_time/helpers/time_helper.rb', line 24 def formatted_time_for_input(seconds) return "#{(seconds / 60).to_i}m" if seconds < 3600 "#{(seconds / 3600.to_f).round(2)}h" end |