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

Version Path
data_magic-1.0 lib/data_magic/core_ext/fixnum.rb
data_magic-0.22 lib/data_magic/core_ext/fixnum.rb
fig_magic-0.5 lib/fig_magic/core_ext/fixnum.rb
fig_magic-0.4 lib/fig_magic/core_ext/fixnum.rb
fig_magic-0.3 lib/fig_magic/core_ext/fixnum.rb
fig_magic-0.2 lib/fig_magic/core_ext/fixnum.rb
fig_magic-0.1 lib/fig_magic/core_ext/fixnum.rb
data_magic-0.21 lib/data_magic/core_ext/fixnum.rb
data_magic-0.20 lib/data_magic/core_ext/fixnum.rb
data_magic-0.19 lib/data_magic/core_ext/fixnum.rb
data_magic-0.18 lib/data_magic/core_ext/fixnum.rb
data_magic-0.17 lib/data_magic/core_ext/fixnum.rb
data_magic-0.16.1 lib/data_magic/core_ext/fixnum.rb
data_magic-0.16 lib/data_magic/core_ext/fixnum.rb
data_magic-0.15.2 lib/data_magic/core_ext/fixnum.rb
data_magic-0.15.1 lib/data_magic/core_ext/fixnum.rb
data_magic-0.15 lib/data_magic/core_ext/fixnum.rb
data_magic-0.14 lib/data_magic/core_ext/fixnum.rb
data_magic-0.13 lib/data_magic/core_ext/fixnum.rb
data_magic-0.12 lib/data_magic/core_ext/fixnum.rb