java.sql
Class Datejava.lang.Object | +--java.util.Date | +--java.sql.Date
- All Implemented Interfaces:
- Cloneable, Comparable, Serializable
- public class Date
- extends Date
A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value. A milliseconds value represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT.
To conform with the definition of SQL DATE, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero in the particular time zone with which the instance is associated.
- See Also:
- Serialized Form
Constructor Summary
Date(int year, int month, int day)
Deprecated. instead use the constructor Date(long date)Date(long date)
Constructs a Date object using the given milliseconds time value.
Method Summary
int getHours()
Deprecated.int getMinutes()
Deprecated.int getSeconds()
Deprecated.void setHours(int i)
Deprecated.void setMinutes(int i)
Deprecated.voi