class DashingContrib::Time

Public Class Methods

readable_diff(old_time, new_time = ::Time.now) click to toggle source
# File lib/dashing-contrib/bottles/time.rb, line 6
def readable_diff(old_time, new_time = ::Time.now)
  t = ::Time.diff(new_time, old_time)
  "#{t[:day]}d #{t[:hour]}h #{t[:minute]}m"
end