Class: Float
Instance Method Summary collapse
Methods included from Zero2
Instance Method Details
#to_hh_mm_ss ⇒ Object
14 15 16 17 18 |
# File 'lib/mcutter/core_ext/misc.rb', line 14 def to_hh_mm_ss mm, ss = self.divmod(60) hh, mm = mm.divmod(60) "#{hh.zero2}:#{mm.zero2}:#{ss.zero2}" end |