• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Has the 5th business day of the month passed???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has the 5th business day of the month passed???


  • Subject: Re: Has the 5th business day of the month passed???
  • From: Bill Peters <email@hidden>
  • Date: Wed, 21 Feb 2001 10:54:50 -0700

>Hello,
>
>I need to confirm that the fifth business day of the month has passed before
>continueing on with a script.
>I have done it successfully but I ask is there a better way.
>

One easy optimization is that the fifth business day is always on the
seventh, unless the month starts on a Sunday or a Monday. For months
starting on Sunday, the fifth business day is the sixth, for Monday, it is
the fifth. If you want the script to run on the first business day _after_
the fifth business day, you could make a similar list of day values.

Also, you may want to consider January (New Year's day), July (Independence
Day), and September (Labor Day) and special case the code to not count
these holidays for US based customers.

Good Luck,
Bill Peters


  • Prev by Date: Re: Scriptable Text Editor
  • Next by Date: Quark curiosity: end of story VS set after story
  • Previous by thread: Re: Has the 5th business day of the month passed???
  • Next by thread: Re: Has the 5th business day of the month passed???
  • Index(es):
    • Date
    • Thread