Comparable<CalendarDate>public class CalendarDate extends IsoDate implements Comparable<CalendarDate>
This class describes a calendar date as defined by ISO 8601.
| Constructor | Description |
|---|---|
CalendarDate(Integer year,
Month month,
Integer day) |
Creates a new calendar date with the specified year, month and day.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(CalendarDate o) |
|
Integer |
day() |
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
Month |
month() |
|
String |
toString() |
Returns this date in ISO 8601 format.
|
TimePoint |
toTimePoint(Time t,
TimeZone tz) |
Returns a point in time represented by this date and a supplied
time of day.
|
Integer |
year() |
public CalendarDate(Integer year, Month month, Integer day)
year - The year, e.g. 2001.month - The month, e.g. Month.January.day - The day in month, e.g. 4.public Integer year()
public Month month()
public Integer day()
public String toString()
IsoDatepublic TimePoint toTimePoint(Time t, TimeZone tz)
IsoDatetoTimePoint in class IsoDatet - A time of day. May be null.tz - The timezone.public int compareTo(CalendarDate o)
compareTo in interface Comparable<CalendarDate>Copyright © 2021 Apptus Technologies AB. All rights reserved.