Well, technically, in the case of these scripts - there is a universal holiday schedule.
The scripts take in data from the NYSE, NASDAQ, and AMEX exchanges and nothing else.
Those markets share the same holiday schedule.
I was trying to weigh out whether it was better to check that and never hit the net (do more work), or if it was better to download something and determine it from that.
There are arguements for and against each - but I suppose the best arguement for the "always download" approach isn't that they don't share the same holiday schedule - but the case where one is closed for a reason that the others wouldn't close (ie something happens to the physical structure of one and not the others).
Even then - historically, they all close... but just in case, I suppose that is the arguement that the data should determine it in this case.
Were there banks or other markets involved, it wouldn't be the case and I'd agree with you - but in this case, I think the holidays would work just fine.
I was mainly curious if someone had already done a holiday module to save me time/effort - and as someone pointed out, it looks like there is something in part of the Date::Calendar module.
-------------------------------------------------------------------
There are some odd things afoot now, in the Villa Straylight.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.