java.sql
public class Time extends Date
Constructor Summary | |
---|---|
Time(int hour, int minute, int second)
This method initializes a new instance of this class with the
specified year, month, and day.
| |
Time(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 | getDate()
This method always throws an IllegalArgumentException.
|
int | getDay()
This method always throws an IllegalArgumentException.
|
int | getMonth()
This method always throws an IllegalArgumentException.
|
int | getYear()
This method always throws an IllegalArgumentException.
|
void | setDate(int newValue)
This method always throws an IllegalArgumentException.
|
void | setMonth(int newValue)
This method always throws an IllegalArgumentException.
|
void | setYear(int newValue)
This method always throws an IllegalArgumentException.
|
String | toString()
This method returns this date in JDBC format.
|
static Time | 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: hour The hour for this Time (0-23) minute The minute for this time (0-59) second The second for this time (0-59)
Parameters: date The time value to intialize this Time
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.
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.Time
value.