Sha256: a58d4a965b5e6dedea31c380941d8af04d5a020b09b2462a2bf1dbbb3d5d7388
Contents?: true
Size: 219 Bytes
Versions: 20
Compression:
Stored size: 219 Bytes
Contents
class Fixnum def days_from_today(format = '%D') the_day = Date.today + self the_day.strftime(format) end def days_ago(format = '%D') the_day = Date.today - self the_day.strftime(format) end end
Version data entries
20 entries across 20 versions & 2 rubygems