From: Devin Mullins Date: 2007-01-03T12:33:39+09:00 Subject: Re: Detecting holidays No! I insist that you top post!* Oh, and for some actual content: http://en.wikipedia.org/wiki/Computus#Algorithms Good luck with that. Martin Fowler had an article/series of articles on building a DSL for recurring dates. You might want to investigate. Devin Mat Schaffer wrote: > > On Jan 2, 2007, at 2:37 PM, Jeremy McAnally wrote: > >> Well, the way I'm working it out is like AR's dynamic finders. It >> will have a few groups of dates hardcoded (like national holidays and >> such), but then you can Devin give it new groups in the form hashes of >> arrays of dates with named "work_holidays" or "surprise_offdays" and >> then call the method like is_a_work_holiday? or is_a_surprise_offday?. >> I'm still working on it...I'll post when I've got it done. >> >> --Jeremy > > > Sounds neat. Just please bottom post when replying :) > -Mat > > * I'm joking, mostly. I use Thunderbird, ATM, so top posts are much more convenient for me. I know, I know, majority rules... just... trim, if you bottom post. Devin