It's a little frustrating working with time in Jess.  You can store a
time as a java.util.Date, but then you can't compare it with <, >,
etc...if you work with it as a long, then you can't call + and other
math functions; they change the number into INTEGER.  If you work with
time as ms/1000, then you lose a lot of accuracy.

Any suggestions on how best to handle time?

I have a few specific ones:

1. Extend <, >, etc. to work with Comparable objects.
2. Instead of printing ExternalAddress and so forth when printing out
fact lists, use an extra slot descriptor to indicate that toString()
should be called on the object in the fact slot, and that used as the
text to represent the object.
3. Extend + and other math functions to work with LONG values.

RJ

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to