public final class CalendarDate extends Object
CalendarDate contains only date information.
 
 A CalendarDate only partially specifies an instant in the time continuum;
 it must be combined with a TimeOfDay and TimeZone to produce a specific
 instant.
Date| Constructor and Description | 
|---|
| CalendarDate()Constructs an instance representing the current day in the default time zone. | 
| CalendarDate(Date date,
            TimeZone tz)Constructs an instance representing the specified time in the given time zone. | 
| CalendarDate(int year,
            int monthOfYear,
            int dayOfMonth)Constructs an instance representing the specified date. | 
| CalendarDate(long epochDays)Constructs an instance representing the date occurring the specified number
 of days after epoch. | 
| CalendarDate(TimeZone tz)Constructs an instance representing the current day in the specified time zone. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| int | getDayOfMonth()Get the day portion of the date. | 
| long | getDaysSinceEpoch()Get the number of days elapsed since epoch. | 
| int | getMonthOfYear()Get the month portion of the date. | 
| int | getYear()Get the year portion of the date. | 
| int | hashCode() | 
| static long | today()Gets the current date in the default time zone as days since
 epoch. | 
| static long | today(TimeZone tz)Gets the current date in the specified time zone as days since
 epoch. | 
public CalendarDate()
public CalendarDate(TimeZone tz)
tz - the time zone to which the current day is relativepublic CalendarDate(long epochDays)
epochDays - the number of days elapsed since January 1, 1970public CalendarDate(int year,
                    int monthOfYear,
                    int dayOfMonth)
year - the year portion of the datemonthOfYear - the month portion of the date.  Months are counted as on
 a calendar, starting with 1 for January.dayOfMonth - the day portion of the datepublic long getDaysSinceEpoch()
public int getYear()
public int getMonthOfYear()
public int getDayOfMonth()
public static long today()
public static long today(TimeZone tz)
tz - the time zone relative to which to interpret the current dateCopyright © 2019 Actian Corporation. All rights reserved.