Chris Burke wrote:
> I don't think anyone has yet found a problem with J's date handling.
> This thread was initiated by someone who thought there was an error, but
> quickly admitted his mistake.
> 
> Nevertheless, it is important that the date routines be reliable, and
> the suggestion that they may not be is a concern. Are there standard
> tests that should be run? Obvious ones like the following seem to work
> correctly:

I think J's date routines is OK. A very minor issue is that verb "todate" does
not <. its argument. eg,
   todayno 2006 12 31
75604
   todate 75604.1
2006 12 31
   todate 75604.5
2007 1 1

Day should be floored rather than rounded because the day 2006 12 31 should
include midnight 00:00:00 upto 23:59:59 before next midnight. Not a bug but only
that users should remember to apply <. before passing argument to "todate"

-- 
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to