| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjava.util.Datejava.sql.DateConstructor Summary | |
| |
| |
Method Summary | |
int |
|
int |
|
int |
|
void |
|
void |
|
void |
|
String |
|
static Date | |
Methods inherited from class java.util.Date | |
UTC, after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString | |
Methods inherited from class java.lang.Object | |
clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait | |
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.