Hi Henry, ...and because it doesn't exist Feb 29, 2003 has the same todayno value as March 1, 2003. That seems pretty reasonable to me since checking if 2003 2 29 =&todayno 2003 3 1 becomes a way (albeit heavy handed) to discern leap years.
Cheers, bob On Sep 24, 2014, at 2:14 AM, Henry Rich <[email protected]> wrote: > 2003 2 29 doesn't exist > > Henry Rich > > On 9/24/2014 5:13 AM, Linda Alvord wrote: >> Shouldn't the difference be 366 every four years. Bob's comments caused me >> to worry about leap year, and I am getting incorrect answers but they may be >> based on this. >> >> >> >> diff=: 13 :'(todayno x)-todayno y' >> >> >> >> (2005 3 1) diff 2004 2 29 >> >> 366 >> >> (2004 3 1) diff 2003 2 29 >> >> 366 >> >> (2003 3 1) diff 2002 2 29 >> >> 365 >> >> (2002 3 1) diff 2001 2 29 >> >> 365 >> >> (2001 3 1) diff 2000 2 29 >> >> 366 >> >> (2000 3 1) diff 1999 2 29 >> >> 366 >> >> (1999 3 1) diff 1998 2 29 >> >> 365 >> >> (1998 3 1) diff 1997 2 29 >> >> 365 >> >> (1997 3 1) diff 1996 2 29 >> >> 366 >> >> (1996 3 1) diff 1995 2 29 >> >> 366 >> >> >> >> >> >> >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
