I have an object that contains a date timestamp such as
time = Sat, 06 Apr 2013 08:00:00 PDT -07:00
I am simply trying to compare the object time, to see if the date matches the day(month, day, year) tomorrow (not conerned with the time). This check will happen everyday.
I am trying things such as:
time == Date.tomorrow
做:
time.to_date == Date.tomorrow
尝试:
Date.parse(time) == Date.tomorrow
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.