in reply to •Re: Is there a "Holiday" module?
in thread Is there a "Holiday" module?

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.
  • Comment on Re: •Re: Is there a "Holiday" module?

Replies are listed 'Best First'.
Re: Re: •Re: Is there a "Holiday" module?
by Limbic~Region (Chancellor) on Apr 25, 2003 at 22:00 UTC
    AssFace,
    I think merlyn, and others, are right for a different reason. Even though there is no universal Holiday schedule, you could possibly find, or more likely, build your own that fits your situation. What is the problem with that?

    Automation is only as smart as the person who programmed it.

    During the 9/11 tragedy the markets were closed for an "un-scheduled outage". If your code can't efficiently determine that today is a down day - you will eventually end up having your script waste time and resources.

    Cheers - L~R

•Re: Re: •Re: Is there a "Holiday" module?
by merlyn (Sage) on Apr 25, 2003 at 21:13 UTC
    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.
    But I think I just pointed out why there can't be exactly what you need. Was some part of my previous post unclear?

    You'll need to determine if the particular place from which you are sucking data is closed. Only that site will know. Anything else is a guess. And can you really afford guesses?

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      But I think I just pointed out why there can't be exactly what you need. Was some part of my previous post unclear?

      Was some part of AssFace's (dude...) previous post unclear? A module that implements a holiday calendar would seem to match his requirements and answer his question.

      ... 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.

      --Solo

      --
      But I ain't crazy. You're the respectable one, remember?