| 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.Date
This class is a thin wrapper around java.util.Date that allows JDBC to identify this as a SQL DATE value. It adds formatting and parsing operations to support the JDBC escape syntax for date values.
| Constructor Summary | |
| Date(int year,
int month,
int day)
|
|
| Date(long date)
|
|
| Method Summary | |
| int | getHours()
|
| int | getMinutes()
|
| int | getSeconds()
|
| void | setHours(int i)
|
| void | setMinutes(int i)
|
| void | setSeconds(int i)
|
| void | setTime(long date)
|
| String | toString()
|
| static Date | 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 Date(int year,
int month,
int day)
year
- year-1900
month
- 0 to 11
day
- 1 to 31
public Date(long date)
date
- milliseconds since January 1, 1970, 00:00:00 GMT
| Method Detail |
public void setTime(long date)
date
- milliseconds since January 1, 1970, 00:00:00 GMT
public static Date valueOf(String s)
s
- date in format "yyyy-mm-dd"
public String toString()
public int getHours()
public int getMinutes()
public int getSeconds()
public void setHours(int i)
public void setMinutes(int i)
public void setSeconds(int i)
| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||