Date and Calendar-Related Classes

Another major set of classes supported by the java.util package is the classes for working with dates and calendars. The original JDK 1.0 provided the Date class to encapsulate date and time as an object. In JDK 1.1, many of the functions of the Date class were deprecated in favor of more international handling of date and time. The Calendar, GregorianCalendar, SimpleTimeZone, and TimeZone classes were added to provide more comprehensive and international support of date and time. The DateFormat class of the java.text package was also added to support international date formatting. JDK 1.3 added the Timer and TimerTask classes, which provide the capability to execute background tasks under the control of a timer. ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.