Best way to compare this simple ruby/rails Date -
i have object contains date timestamp such
time = sat, 06 apr 2013 08:00:00 pdt -07:00
i trying compare object time, see if date matches day(month, day, year) tomorrow (not conerned time). check happen everyday.
i trying things such as:
time == date.tomorrow
do:
time.to_date == date.tomorrow
Comments
Post a Comment