Forum: Ruby Runt: Matching the year

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pat M. (Guest)
on 2005-12-14 11: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.

This topic is locked and can not be replied to.