app/helpers/week_plan_helper.rb
def has_beeen_updated_recently?( update_time )
    now = Time.now.utc
    ( (! update_time.nil?) && (update_time.year == now.year) && (update_time.month == now.month) && (update_time.day == now.day) &&
      (update_time.hour == now.hour) && (update_time.min == now.min) && ((now.sec - update_time.sec).abs < 7) )
  end
# Returns true if the specified current_datetime is a few seconds away from current System date & time
#
Returns true if the specified current_datetime is a few seconds away from current System date & time
Returns true if the specified current_datetime is a few seconds away from current System date & time
def has_beeen_updated_recently?( update_time )
    now = Time.now.utc
    ( (! update_time.nil?) && (update_time.year == now.year) && (update_time.month == now.month) && (update_time.day == now.day) &&
      (update_time.hour == now.hour) && (update_time.min == now.min) && ((now.sec - update_time.sec).abs < 7) )
  end
def has_beeen_updated_recently? ( update_time ) now = Time . now . utc ( ( ! update_time . nil? ) && ( update_time . year == now . year ) && ( update_time . month == now . month ) && ( update_time . day == now . day ) && ( update_time . hour == now . hour ) && ( update_time . min == now . min ) && ( ( now . sec - update_time . sec ) . abs < 7 ) ) end
Returns true if the specified current_datetime is a few seconds away from current System date & time
Returns true if the specified current_datetime is a few seconds away from current System date & time
update_time