Try:
(get-member ?myCalendarInstance YEAR)
Good luck!
alan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Owen, James
Sent: Monday, July 02, 2001 7:03 AM
To: 'Emmanuel ROHMER'; [EMAIL PROTECTED]
Subject: RE: JESS: Using java.util.Calendar within Jess
This is rather verbose, but you can modify it.
import java.util.*; // GregorianCalendar;
public class myYear () {
GregorianCalendar d1 = new GregorianCalendar();
public int getYear () {
return d1.get(d1.YEAR);
}
}
-----Original Message-----
From: Emmanuel ROHMER [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 5:44 AM
To: [EMAIL PROTECTED]
Subject: JESS: Using java.util.Calendar within Jess
Hello,
I'm trying to get the value of the current year.
I think the Java syntax would be :
(new java.util.GregorianCalendar).get(Calendar.YEAR)
The problem is : how to get the value of 'Calendar.YEAR'.
(call java.util.Calendar YEAR) doesn't work because YEAR isn't a method.
Any help would be appreciated.
Thanks
Emmanuel ROHMER
____________________________________________________________________________
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
---------------------------------------------------------------------
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]
---------------------------------------------------------------------