Link to home
Start Free TrialLog in
Avatar of william007
william007

asked on

Different between Calendar and GregorianCalendar?

What is the different between Calendar and GregorianCalendar?
How we choose whether we are using Calendar or GregorianCalendar?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

The type of Calendar you use depends on the date system you use. Western countries normally use the Gregorian implementation
SOLUTION
Avatar of WelkinMaze
WelkinMaze

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of william007
william007

ASKER

From the link http://www.devx.com/tips/Tip/5680
>>However, as part of the internationalization features introduced with Java 1.1, most of the methods in >>Date were deprecated

Yes, in the api there is a lot of deprecated method for date, but how is it related to internationalization features?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
william007, I've posted the link just to see the difference between Calendar and GregorianCalendar.
I think that the "internationalization features" phrase is used without much intention in the context.
http://mindprod.com/jgloss/calendar.html
is really useful, thanks:-)

Btw, Is there a reason many date API method or constructor is deprecated?
For example for java.sql.Date here
http://java.sun.com/j2se/1.4.2/docs/api/index.html
>>The only difference between the Gregorian and the Julian calendar is the leap year rule
But why it mention JulianCalendar in the API, yet I don't see a class called JulianCalendar?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
(My last comment of course related to your question about the 'absence' of JulianCalendar)
Thanks:-)
:-)