Hello Khalid.

There is an
extensive entry on date handling in Jess and Java (with many working
functions) in the Jess Wiki by contributor George Williamson:

http://www.jessrules.com/jesswiki/view?WorkingWithDates

Regards,

Win

Hai There,
I am having difficult
time to use "Calendar" Class from Java API in jess,
I am
planning to use this class my simple jess script. But i just got stuck on
the seting up the date detail (e.g: Year) in jess.
 Once I run
following script on eclipse. (reset)
(watch all)
(import  java.util.Calendar)
 (bind ?futureCal 
(Calendar.getInstance))
(call ?futureCal set "Calendar.HOUR,
8")


But, i would have an error ;

 Jess
reported an error in routine call
    while executing
(call ?futureCal get "Calendar.HOUR, 8").
  Message:
No overloading of method 'get' in class java.util.GregorianCalendar I can
call with these arguments: (call ?futureCal get "Calendar.HOUR,
8").
   Program text: ( call ?futureCal get
"Calendar.HOUR, 8" )  at line 5 in file
/home/jess/workspace/HelloWorld/src/HelloWorld.clp.

It is saying the 'get' method is not under GreogorianCalendar class, but
if i am referring to this
, it is already inherited form 'Calendar' class.
 Any suggestion
about above error?
Thanks for the attention
--  
-
Yasir -
  

Reply via email to