Topic: Calculating holidays...

Hello all,

I am currently preparing to write a little app that will calculate and displays dates but skip holidays. While I haven't given too much thought to the general design there is one point that I know I will have problems with and was wondeing if any bright spark had already designed a solution.

The problem is this. Some of the holidays are "Second Monday in July". Is there an easy way in Ruby to check if this situation is true? I have combed through the Date class but haven't found anything obvious.

If not how would you go about doing it?

Many thanks


Re: Calculating holidays...

You may find Chronic useful, as it can parse expressions like that.