|
|
|||||
| Package com.dassault_systemes.catjsystem |
Class CATDate
|
| Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catjsystem.CATDate
| Class Location |
| Class Description |
public class CATDate
An object that enables basic storage and retrieval of dates (not times).
| Field Summary |
| Constructor Summary |
| CATDate(Date iDate)
Initializes a new instance to the specified number of milliseconds since January 1, 1970, 00:00:00 GMT. |
| CATDate(int year, int month, int day)
Initializes a new instance to the specified year, month, and day. |
| CATDate(long time)
Initializes a new instance to the specified number of milliseconds since January 1, 1970, 00:00:00 GMT. |
| Method Summary |
| public int | getDate()
Returns the day of the current instance. |
| public int | getMonth()
Returns the month of the current instance. |
| public long | getTime()
Returns the time of the current instance as a long. |
| public int | getYear()
Returns the year of the current instance. |
| Field Detail |
| Constructor Detail |
CATDate(Date iDate)
Initializes a new instance to the specified number of milliseconds since
January 1, 1970, 00:00:00 GMT. This value is retrieved from the
java.util.Date instance passed in parameter.
iDate
CATDate(int year, int month, int day)
Initializes a new instance to the specified year, month, and day.
yearmonthday
CATDate(long time)
Initializes a new instance to the specified number of milliseconds since
January 1, 1970, 00:00:00 GMT.
time| Method Detail |
public int getDate()
Returns the day of the current instance.
public int getMonth()
Returns the month of the current instance.
public long getTime()
Returns the time of the current instance as a long.
public int getYear()
Returns the year of the current instance.