Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.util.Date | +----java.sql.Time
This class is a thin wrapper around java.util.Date that allows JDBC to identify this as a SQL TIME value. It adds formatting and parsing operations to support the JDBC escape syntax for time values.
Constructor Summary | |
Time(int hour,
int minute,
int second)
|
|
Time(long time)
|
Method Summary | |
int | getDate()
|
int | getDay()
|
int | getMonth()
|
int | getYear()
|
void | setDate(int i)
|
void | setMonth(int i)
|
void | setTime(long time)
|
void | setYear(int i)
|
String | toString()
|
static Time | valueOf(String s)
|
Methods inherited from class java.util.Date |
after, before, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Time(int hour, int minute, int second)
hour
- 0 to 23
minute
- 0 to 59
second
- 0 to 59
public Time(long time)
time
- milliseconds since January 1, 1970, 00:00:00 GMT
Method Detail |
public void setTime(long time)
time
- milliseconds since January 1, 1970, 00:00:00 GMT
public static Time valueOf(String s)
s
- time in format "hh:mm:ss"
public String toString()
public int getYear()
public int getMonth()
public int getDay()
public int getDate()
public void setYear(int i)
public void setMonth(int i)
public void setDate(int i)
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |