Both todayno and todate were extended to take a left argument of 2 for datetime YYYY MM DD HH MM SS. This should already be documented in stdlib. eg,
2 todate 2 todayno 2014 10 1 16 30 22 2014 10 1 16 30 22 or fractional seconds 2 todate 2 todayno 2014 10 1 16 30 22.1234 2014 10 1 16 30 22.1234 Ср, 24 сен 2014, Linda Alvord написал(а): > 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 -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
