I have some scripts that go and grab data, and then do work on that data. They currently look to see if it is a weekend, and if so, they kill themselves quietly.
But if there is a weekday holiday, they will still execute, happily downloading and analyzing duplicate data, blissfully ignorant to their wasted effort.
Specifically I am working with stock market data, and so I would like to add in code that will take into account if "today" is a holiday that the stock markets observe and therefore are closed, meaning the script should die quietly.
I have an account on a Pair server, so I have access to a huge number of modules - I sifted through
their list and then popped over to the CPAN Search as well.
I've looked through a bit of the Date::Calendar and its friends, but I'm curious if anyone here knows of:
1) ideally a module that is stock market specific that has holiday info
or
2) a module that is holiday smart (and then I will then add the extra code on my side to be aware of the stock market code)
Thanks!
-Eric
-------------------------------------------------------------------
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.