Sha256: a9eb6574838aca3d0656bfc6637f2b99ca624f29cfde1c4742cd67d8904bc423
Contents?: true
Size: 252 Bytes
Versions: 26
Compression:
Stored size: 252 Bytes
Contents
require 'time_diff' module DashingContrib class Time class << self 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 end end end
Version data entries
26 entries across 26 versions & 1 rubygems