require 'active_support/all' time = Time.now puts time + 5.days # 5 روز بعد puts time - 2.weeks # 2 هفته قبل