General discussion

Locked

Explore java.util.Calendar

By Mark W. Kaelin Editor ·
The Jan 6, Java TechMail discusses the java.util.Calendar class. Many applications require the tracking and determination of dates on the calendar. Have you used the java.util.Calendar class in your applications?

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

What about the "gotchas"?

by avia In reply to Explore java.util.Calenda ...

Yes, I have used the (abstract) "java.util.Calendar" class and its concrete subclass, "java.util.GregorianCalendar".

You did not mention the multitude of "gotchas" associated with these classes. Fortunately, someone else has:

http://mindprod.com/gotchas.html#GREGORIANCALENDAR

These classes are (in my opinion) _not_ intuitive and are difficult to work with (mainly due to the "gotchas"), and, unfortunately, the only classes available in the core java library for dealing with "calendar" data. However, there are third-party alternatives available:

http://mindprod.com/jglossbigdate.html#BIGDATE

I wouldn't agree with "worth the learning curve" -- it's more a case of "no alternative, like it or lump it!".

Avi.

Collapse -

True

by bayard In reply to What about the "gotchas"?

Very true Avi.

Roedy Green's [mindprod] site seems to have always been there and always has good stuff.

Another third-party alternative is the JODA-dates package over at:

http://joda.sourceforge.net/dates.html

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums