From: Johannes Schneider on
Rhino wrote:
> Can someone clarify for me the difference between:
>
> GregorianCalendar now = new GregorianCalendar();
>
> and
>
> Calendar now = Calendar.getInstance();
>
> and
>
> Calendar now = GregorianCalendar.getInstance();
>

There is a simple answer for that one. Use Joda-Time...
There should be a very good reason to use that Calendar stuff...


Sincerely,

Johannes
From: Arne Vajhøj on
On 28-03-2010 08:15, Johannes Schneider wrote:
> Rhino wrote:
>> Can someone clarify for me the difference between:
>>
>> GregorianCalendar now = new GregorianCalendar();
>>
>> and
>>
>> Calendar now = Calendar.getInstance();
>>
>> and
>>
>> Calendar now = GregorianCalendar.getInstance();
>>
>
> There is a simple answer for that one. Use Joda-Time...
> There should be a very good reason to use that Calendar stuff...

Using standard Java functionality is a pretty good
reason.

Arne