Package com.rosetta.model.lib.records
Interface Date
- All Superinterfaces:
Comparable<Date>
- All Known Implementing Classes:
DateImpl
-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getDay
int getDay() -
getMonth
int getMonth() -
getYear
int getYear() -
toLocalDate
LocalDate toLocalDate() -
of
-
of
-
parse
Obtains an instance ofDatefrom a text string such as2007-12-03.The string must represent a valid date and is parsed using
DateTimeFormatter.ISO_LOCAL_DATE.- Parameters:
text- the text to parse such as "2007-12-03", not null- Returns:
- the parsed local date, not null
- Throws:
DateTimeParseException- if the text cannot be parsed
-
of
-