Re: 'Prime Time' calculator
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 25, 2004
- 479 views
Pete wrote: > > I wrote: > > > > Sorry, hit enter a little soon.. > > I should add I need to handle this not only for the UK but also for the > > Netherlands and South Africa.. > > I can't find an existing include in the archives, does anyone have > > anything already or care to help? > > > I'm getting somewhere(!?), I now have a formula to calculate Easter Day > (courtesy of Carl Friedrich Gauss) Experience has made me think that the easiest way is to let the user define which days (and partial days) are non-work periods. It is a small task to provide a method for users to maintain a 'non-work' calendar and to use that calendar in your application. Each culture, region, and organistion has greatly varying definitions of what is a non-work period. It is too hard to get it right algorithmically. Just let the users tell instead. -- Derek Parnell Melbourne, Australia