java.sql
public class Date extends Date
Constructor Summary | |
---|---|
Date(int year, int month, int day)
This method initializes a new instance of this class with the
specified year, month, and day.
| |
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.
|
Method Summary | |
---|---|
int | getHours()
This method always throws an IllegalArgumentException.
|
int | getMinutes()
This method always throws an IllegalArgumentException.
|
int | getSeconds()
This method always throws an IllegalArgumentException.
|
void | setHours(int newValue)
This method always throws an IllegalArgumentException.
|
void | setMinutes(int newValue)
This method always throws an IllegalArgumentException.
|
void | setSeconds(int newValue)
This method always throws an IllegalArgumentException.
|
String | toString()
This method returns this date in JDBC format.
|
static Date | valueOf(String str)
This method returns a new instance of this class by parsing a
date in JDBC format into a Java date.
|
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).
Parameters: date The time value to intialize this date to.
Deprecated:
This method always throws an IllegalArgumentException.Throws: IllegalArgumentException when it's called.
Deprecated:
This method always throws an IllegalArgumentException.Throws: IllegalArgumentException when it's called.
Deprecated:
This method always throws an IllegalArgumentException.Throws: IllegalArgumentException when it's called.
Deprecated:
This method always throws an IllegalArgumentException.Throws: IllegalArgumentException when it's called.
Deprecated:
This method always throws an IllegalArgumentException.Throws: IllegalArgumentException when it's called.
Deprecated:
This method always throws an IllegalArgumentException.Throws: IllegalArgumentException when it's called.
Returns: This date as a string.
Parameters: str The string to parse.
Returns: The resulting java.sql.Date
value.