java.sql
Class Timejava.lang.Object | +--java.util.Date | +--java.sql.Time
- All Implemented Interfaces:
- Cloneable, Comparable, Serializable
- public class Time
- extends Date
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.
- See Also:
- Serialized Form
Constructor Summary
Time(int hour, int minute, int second)
Deprecated. Use the constructor that takes a milliseconds value in place of this constructorTime(long time)
Constructs a Time object using a milliseconds time value.
Method Summary
int getDate()
Deprecated.int getDay()
Deprecated.int getMonth()
Deprecated.int getYear()
Deprecated.void setDate(int i)
Deprecated.void setMonth(int i)
&nb