LocalDate is an immutable calendrical that represents a date, often viewed as year-month-day. This object can also access other date fields such as day-of-year, day-of-week and week-of-year.
This class does not store or represent a time or time zone. Thus, for example, the value "2nd October 2007" can be stored in a LocalDate.
The ISO-8601 calendar system is the modern civil calendar system used today in most of the world. It is equivalent to the proleptic Gregorian calendar system, in which todays's rules for leap years are applied for all time. For most applications written today, the ISO-8601 rules are entirely suitable.
However, any application that makes use of historical dates and requires them to be accurate will find the ISO-8601 rules unsuitable. In this case, the application code should use {@code HistoricDate} and define an explicitcutover date between the Julian and Gregorian calendar systems.
LocalDate is immutable and thread-safe. @author Michael Nascimento Santos @author Stephen Colebourne
|
|
|
|
|
|
|
|
|
|