module TimeArray::TimeExt::InstanceMethods

Public Instance Methods

day_changed?() click to toggle source

has year changed in last day?

# File lib/time_array/time_ext.rb, line 18
def day_changed?
  self.day != (self-1.hour).day
end
month_changed?() click to toggle source

has year changed in last month?

# File lib/time_array/time_ext.rb, line 13
def month_changed?
  self.month != (self-1.hour).month
end
year_changed?() click to toggle source

has year changed in last hour?

# File lib/time_array/time_ext.rb, line 8
def year_changed?
  self.year != (self-1.hour).year
end