in reply to Calculating holidays

Hello htmanning,

Although the monks have provided you with knowledge, Just for fun I would like to point out one more module Date::Holidays::USFederal. Source code if you want to implement something similar Source (raw)

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^2: Calculating holidays
by haukex (Archbishop) on Jul 26, 2017 at 08:54 UTC
    Source code if you want to implement something similar Source (raw)

    That's a hard-coded list of dates from 1997 to 2025... not an implementation I'd recommend. Plus, they're US Federal Holidays and don't always fall on the same day as the actual holiday. For example, this year, New Year's Day was observed on Jaunary 2nd.