Class: Tsk::NumberHelper
- Inherits:
-
Object
- Object
- Tsk::NumberHelper
- Defined in:
- lib/tsk.rb
Class Method Summary collapse
Class Method Details
.duration(time) ⇒ Object
132 133 134 135 136 137 |
# File 'lib/tsk.rb', line 132 def self.duration time rest, seconds = time.divmod(60) rest, minutes = rest.divmod(60) hours = rest Time.new(2013, 3, 2, hours, minutes, seconds).strftime('%T') end |