Calendar Utilities
The JDK 1.0 support for dates was poorly designed. With the benefit of hindsight, it would have been better to throw it out and start over again, but backward compatibility was seen as the more important goal. In JDK 1.1 most of the constructors and methods of java.util.Date class were deprecated, and other classes were provided to offer better support for time zones and internationalization.
The following classes specifically relate to date and time:
-
The class Date represents a specific instant in time with millisecond precision. It's really a timestamp, not a date.
-
The class Calendar is an abstract class for converting between a Date object and a set of integer fields such as year, month, day, and hour.
-
The class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access