java.lang.Object
java.util.Date
java.sql.Date
Date(int year, int month, int day)
Date(long date)
int
getHours()
int
getMinutes()
int
getSeconds()
void
setHours(int newValue)
void
setMinutes(int newValue)
void
setSeconds(int newValue)
public Date(int year, int month, int day)
Deprecated.
This method initializes a new instance of this class with the specified year, month, and day.
- Parameters:
year
- The year of this date minue 1900.month
- The month of this date (0-11).day
- The day of this date (1-31).
public Date(long date)
This method initializes a new instance of this class with the specified time value representing the number of milliseconds since Jan 1, 1970 at 12:00 midnight GMT.
- Parameters:
date
- The time value to intialize this date to.
public int getHours() throws IllegalArgumentException
Deprecated.
This method always throws an IllegalArgumentException.
- Throws:
IllegalArgumentException
- when it's called.
public int getMinutes() throws IllegalArgumentException
Deprecated.
This method always throws an IllegalArgumentException.
- Overrides:
- getMinutes in interface Date
- Throws:
IllegalArgumentException
- when it's called.
public int getSeconds() throws IllegalArgumentException
Deprecated.
This method always throws an IllegalArgumentException.
- Overrides:
- getSeconds in interface Date
- Throws:
IllegalArgumentException
- when it's called.
public void setHours(int newValue) throws IllegalArgumentException
Deprecated.
This method always throws an IllegalArgumentException.
- Throws:
IllegalArgumentException
- when it's called.
public void setMinutes(int newValue) throws IllegalArgumentException
Deprecated.
This method always throws an IllegalArgumentException.
- Overrides:
- setMinutes in interface Date
- Throws:
IllegalArgumentException
- when it's called.
public void setSeconds(int newValue) throws IllegalArgumentException
Deprecated.
This method always throws an IllegalArgumentException.
- Overrides:
- setSeconds in interface Date
- Throws:
IllegalArgumentException
- when it's called.
public String toString()
This method returns this date in JDBC format.
- Returns:
- This date as a string.