Module: ErpBaseErpSvcs::Extensions::Core::Formatter
Instance Method Summary collapse
Instance Method Details
#h_m_s ⇒ Object
16 17 18 |
# File 'lib/erp_base_erp_svcs/extensions/core/numbers.rb', line 16 def h_m_s [self / 3600, self/ 60 % 60, self % 60].map { |t| t.to_s.rjust(2,'0') }.join(':') end |