new date conversion bug?

2008-01-31 Thread Devin Asay
I am working on a scheduling program that includes the ability to schedule an event every other week over a specific time period. To determine whether the event should occur during any given week during the time period I do some simple date math to figure out whether a multiple of 14 days

Re: new date conversion bug?

2008-01-31 Thread Stephen Barncard
Devin, You might want to check into Sarah's* Date and time library: http://www.troz.net/Rev/libraries.php *with contributions from noted Revarians Eric Chatonet and Mark Weider I am working on a scheduling program that includes the ability to schedule an event every other week over a

Re: new date conversion bug?

2008-01-31 Thread J. Landman Gay
Devin Asay wrote: I am working on a scheduling program that includes the ability to schedule an event every other week over a specific time period. To determine whether the event should occur during any given week during the time period I do some simple date math to figure out whether a

Re: new date conversion bug?

2008-01-31 Thread Colin Holgate
At 1:52 PM -0700 1/31/08, Devin Asay wrote: This works fine for a few weeks, but then inexplicably fails. For example, Jan. 11, Jan. 25, Feb. 8, Feb. 22, and March 7 all show the event properly. But anything after that fails; i.e., March 21, April 4. It appears to be something odd about

Re: new date conversion bug?

2008-01-31 Thread Sarah Reichelt
On Feb 1, 2008 6:52 AM, Devin Asay [EMAIL PROTECTED] wrote: I am working on a scheduling program that includes the ability to schedule an event every other week over a specific time period. To determine whether the event should occur during any given week during the time period I do some

Re: new date conversion bug?

2008-01-31 Thread Colin Holgate
At 7:33 AM +1000 2/1/08, Sarah Reichelt wrote: I would assume that daylight savings changes for you between March 7 March 21, so that explains the hours difference. Good call, as you can see: http://aa.usno.navy.mil/faq/docs/daylight_time.php it matches the March 9th date I figured out.

Re: new date conversion bug?

2008-01-31 Thread Devin Asay
On Jan 31, 2008, at 2:33 PM, Sarah Reichelt wrote: On Feb 1, 2008 6:52 AM, Devin Asay [EMAIL PROTECTED] wrote: I am working on a scheduling program that includes the ability to schedule an event every other week over a specific time period. To determine whether the event should occur during