class Integer

Public Instance Methods

month()
Alias for: months
months() click to toggle source
# File lib/as/duration/core_ext/integer.rb, line 2
def months
  AS::Duration.new(self * 30*24*60*60, [[:months, self]])
end
Also aliased as: month
year()
Alias for: years
years() click to toggle source
# File lib/as/duration/core_ext/integer.rb, line 7
def years
  AS::Duration.new(self * 365*24*60*60, [[:years, self]])
end
Also aliased as: year