Re: Calculating Holidays
Thanks, that's very much what I'm looking for.Are you willing to share? the raw CFC testbed code download link are now on the testbed page: http://www.sustainablegis.com/projects/calendars/holidaysTB.cfm you will need to download the icu4j lib (2.6.1) from http://oss.software.ibm.com/icu4j/ unpack the icu4j JAR from the archive shove it into cf root/wwwroot/web-inf/lib all the weasel words still apply. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Calculating Holidays
Just to be anal, you probably want to var scope your arrHolidays variable. Although in this case, I'd probably set the values in the CFCs' Variables scope since it isn't changing. That way if the CFC itself is cached, it only has to make arrHolidays once. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Calculating Holidays
i made a start into this using icu4j: http://cfg11n.blogspot.com/2003_09_01_cfg11n_archive.html http://www.sustainablegis.com/projects/calendars/holidaysTB.cfm getting official data is important but difficult. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Calculating Holidays
Well, this is what occurs to me: I believe most holidays one of the following: - The x date in x month (25th of December) - The x number of x day of x month (Third Thursday of November) It's possible with some work those patterns should work for every holiday. You could preset the known holidays and even be able to add new ones, if you use a basis like this... - Calvin - Original Message - From: Ian Skinner To: CF-Talk Sent: Wednesday, December 10, 2003 12:29 PM Subject: Calculating Holidays Anybody know of any pre-built cold fusion functions/cfcs that will calculate various holidays for any given year.Looking for something with the most capabilities from the simple fixed holidays such as US July 4th and Christmas to the ever elusive Easter.It should at least cover the major US/Christian holidays but something more inclusive of other cultures and nationalities all the better.Found one UDF at cflib.org to calculate Easter, and I can figure out Thanksgiving.But It would be nice not to re-invent the wheel, if possible. But, if nothing pre-built exists, can anybody point me to straight forward resources on how one would calculate and/or define various holidays.Again starting with the main US/Federal/Christian holidays, but I would like to also include at least other major cultural/religious holidays found in the US population and finally I don't need them for my current requirement, but national holidays other then the US's may also be interesting to include for future uses of this code. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA Confidentiality Notice:This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Calculating Holidays
Thanks, that's very much what I'm looking for.Are you willing to share? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 9:45 AM To: CF-Talk Subject: Re: Calculating Holidays i made a start into this using icu4j: http://cfg11n.blogspot.com/2003_09_01_cfg11n_archive.html http://cfg11n.blogspot.com/2003_09_01_cfg11n_archive.html http://www.sustainablegis.com/projects/calendars/holidaysTB.cfm http://www.sustainablegis.com/projects/calendars/holidaysTB.cfm getting official data is important but difficult. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Calculating Holidays
Thanks, that's very much what I'm looking for.Are you willing to share? don't i always? need to work thru some bugs with the ibm folks (these are in their queue), get a handle on the UTC issue (it assumes everything's UTC but that behavior might change as most civilized folks don't live in that timezone ;-) wait for icu4j 2.8 to be released. then there's the .JAR size issue, for all the i18n goodness you get, it needs 2.xx mb of .JAR. need to split off the JARs into related but more bite-sized chunks for those folks only wanting some bits. i will ask that you track down some official holiday data for a few locales though. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Calculating Holidays
Sounds fair, even though I only really understood about 3 out 5 (60%) of the acronyms in that message. :-) But, I would be most willing to help track down more holiday definitions. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:59 AM To: CF-Talk Subject: Re: Calculating Holidays Thanks, that's very much what I'm looking for.Are you willing to share? don't i always? need to work thru some bugs with the ibm folks (these are in their queue), get a handle on the UTC issue (it assumes everything's UTC but that behavior might change as most civilized folks don't live in that timezone ;-) wait for icu4j 2.8 to be released. then there's the .JAR size issue, for all the i18n goodness you get, it needs 2.xx mb of .JAR. need to split off the JARs into related but more bite-sized chunks for those folks only wanting some bits. i will ask that you track down some official holiday data for a few locales though. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Calculating Holidays
UTC = Coordinated Universal Time which is Greenwich Mean Time (GMT) or Zulu Time. JAR = Java Archive (or something like that) which is similar to a zip file for Java and typically holds stuff like class files. - Calvin - Original Message - From: Ian Skinner To: CF-Talk Sent: Wednesday, December 10, 2003 3:15 PM Subject: RE: Calculating Holidays Sounds fair, even though I only really understood about 3 out 5 (60%) of the acronyms in that message. :-) But, I would be most willing to help track down more holiday definitions. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:59 AM To: CF-Talk Subject: Re: Calculating Holidays Thanks, that's very much what I'm looking for.Are you willing to share? don't i always? need to work thru some bugs with the ibm folks (these are in their queue), get a handle on the UTC issue (it assumes everything's UTC but that behavior might change as most civilized folks don't live in that timezone ;-) wait for icu4j 2.8 to be released. then there's the .JAR size issue, for all the i18n goodness you get, it needs 2.xx mb of .JAR. need to split off the JARs into related but more bite-sized chunks for those folks only wanting some bits. i will ask that you track down some official holiday data for a few locales though. _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Calculating Holidays
But, I would be most willing to help track down more holiday definitions. you might regret saying that publically.its a tough row to hoe. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Calculating Holidays
UTC = Coordinated Universal Time which is Greenwich Mean Time (GMT) or Zulu Time. JAR = Java Archive (or something like that) which is similar to a zip file for Java and typically holds stuff like class files. and just in case: i18n = internationalization for the 18 letters between the i n. icu4j = international components for unicode for java [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]