From: Johannes Schneider on 28 Mar 2010 08:15 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 28 Mar 2010 18:46
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 |