Re: Bogus Gregorian Calendar
Re: Bogus Gregorian Calendar
- Subject: Re: Bogus Gregorian Calendar
- From: Greg Hulands <email@hidden>
- Date: Fri, 18 Jun 2004 12:02:46 +1000
Those damn hippies!
Thanks. I glossed over the docs but it never jumped out at me that it
was 0 based.
On 18/06/2004, at 11:46 AM, Art Isbell wrote:
On Jun 17, 2004, at 3:39 PM, Greg Hulands wrote:
I am getting the current date by doing:
GregorianCalendar now = new GregorianCalendar();
But the only thing is that it is not using the correct month.
I logged it to the console and got this. The month is 5 not 6.
In Sun's infinite wisdom, month of year indices are zero-based unlike
those for day of month, day of week, etc. Welcome to the wonderful
world of Java.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.