Forum: Ruby Runt: Matching the year

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2005-12-14 10:19
(Received via mailing list)
I downloaded runt to do some temporal expression work, and was
wondering if there's any way to match against a year.  From what I can
tell I can match against month, day, hour, min, sec, but not the year.
 Basically I'd like to have a timex that matches all dates with the
year 2005.  If I create a date that has the year 2006, then include?
should return false for that particular date.  Am I missing something
in the docs?  I'd appreciate any help.

Pat
This topic is locked and can not be replied to.