Time
public
class
Time
extends Date
| java.lang.Object | ||
| ↳ | java.util.Date | |
| ↳ | java.sql.Time | |
A thin wrapper around the java.util.Date class that allows the JDBC
API to identify this as an SQL TIME value. The Time
class adds formatting and
parsing operations to support the JDBC escape syntax for time
values.
The date components should be set to the "zero epoch" value of January 1, 1970 and should not be accessed.
Summary
Public constructors | |
|---|---|
Time(int hour, int minute, int second)
This constructor is deprecated. Use the constructor that takes a milliseconds value in place of this constructor |
|
Time(long time)
Constructs a |
|
Public methods | |
|---|---|
int
|
getDate()
This method is deprecated.
This method is deprecated and should not be used because SQL |
int
|
getDay()
This method is deprecated.
This method is deprecated and should not be used because SQL |
int
|
getMonth()
This method is deprecated.
This method is deprecated and should not be used because SQL |
int
|
getYear()
This method is deprecated.
This method is deprecated and should not be used because SQL |
void
|
setDate(int i)
This method is deprecated.
This method is deprecated and should not be used because SQL |
void
|
setMonth(int i)
This method is deprecated.
This method is deprecated and should not be used because SQL |
void
|
setTime(long time)
Sets a |
void
|
setYear(int i)
This method is deprecated.
This method is deprecated and should not be used because SQL |
String
|
toString()
Formats a time in JDBC time escape format. |
static
Time
|
valueOf(String s)
Converts a string in JDBC time escape format to a |
Inherited methods | |
|---|---|