Package com.dassault_systemes.catjsystem |
java.lang.Object
|
+-com.dassault_systemes.catjsystem.CATDate
Framework : CATJSystem
Module : CATJSystem
public class CATDate
An object that enables basic storage and retrieval of dates (not times).
CATDate
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.
- Parameters:
iDate
- the java.util.Date instance representing a number of
milliseconds since January 1, 1970, 00:00:00 GMT. A negative number
indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT.
CATDate
CATDate(int year, int month, int day)
Initializes a new instance to the specified year, month, and day.
- Parameters:
year
- the year value, minus 1900 (for instance, use 90 instead of 1990).
month
- the month value, 0-based (0 - January to 11 - December).
day
- the day value (from 1 to 31).
CATDate
CATDate(long time)
Initializes a new instance to the specified number of milliseconds since
January 1, 1970, 00:00:00 GMT.
- Parameters:
time
- the number of milliseconds since January 1, 1970, 00:00:00 GMT.
A negative number indicates the number of milliseconds before
January 1, 1970, 00:00:00 GMT.
getDate
int getDate()
Returns the day of the current instance.
- Returns:
the day value (from 1 to 31).
getMonth
int getMonth()
Returns the month of the current instance.
- Returns:
the month value, 0-based (0 - January to 11 - December).
getYear
int getYear()
Returns the year of the current instance.
- Returns:
the year value, minus 1900 (for instance, 90 stands for 1990).
getTime
long getTime()
Returns the time of the current instance as a long.
- Returns:
the number of milliseconds since January 1, 1970, 00:00:00 GMT.
A negative number indicates the number of milliseconds before
January 1, 1970, 00:00:00 GMT.
Copyright © 2000, Dassault Systèmes. All rights reserved