# Runt: Matching the year

**URL:** <https://www.ruby-forum.com/t/runt-matching-the-year/50218>\
**Category:** Ruby\
**Created:** [December 14, 2005, 10:19am UTC](https://www.ruby-forum.com/t/runt-matching-the-year/50218 "2005-12-14T10:19:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [December 14, 2005, 10:19am UTC](https://www.ruby-forum.com/t/runt-matching-the-year/50218/1 "2005-12-14T10:19:59Z")

</div>

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
