I have worked extensively with Calendar and I can say that Yes this is
true. Why? That I have no answer for...

-August

--- Magnus Jansson <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I think that the Calendar object behaves strange.
> 
> <%
>  String[] ids = TimeZone.getAvailableIDs(1 * 60 * 60 * 1000);
>  SimpleTimeZone pdt = new SimpleTimeZone(1 * 60 * 60 * 1000, ids[0]);
>  pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 1 * 60 * 60 *
> 1000);
>  pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 1 * 60 * 60 *
> 1000);
>  GregorianCalendar MyDate = new GregorianCalendar(pdt);
>  out.print(MyDate.get(Calendar.YEAR) + "-" +
> MyDate.getMinimum(Calendar.MONTH) + "-" +
> MyDate.getMinimum(Calendar.DATE);
> %>
> 
> My output is : 2001-0-1
> 
> Is it so that months start a 0 and dates starts at 1?????
> weird in that case. Why does not both month and date starts at 0 or
> 1. That would have been much more simple..
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to