A Norwegian holiday calendar. Answers the age-old question: When is mothersday this year?
Mothersday: Second Sunday in February. Fathersday: Second Sunday in November. Valentines Day: February 14. Christmas: December 24th (Norwegians only care about Christmas Eve, apparently).
NorwegianHolidays.christmas(2010) => December 24, 2010 NorwegianHolidays.mothersday(2011) => February 13, 2011 NorwegianHolidays.next_mothersday( Date.new(2011, 2, 7) ) => February 13, 2011 NorwegianHolidays.next_mothersday( Date.new(2011, 3, 14) ) => February 12, 2012
Next (if coming up) or last holiday
There is a need to return the next holiday if it is coming up within a certain timeframe, otherwise return last year's holiday.
The name for this has not been suitably determined as of yet.