[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.sql/java/sql/Date.html [Back]  [Original]

Date (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. Date(int, int, int)
    2. Date(long)
  5. Method Details
    1. setTime(long)
    2. valueOf(String)
    3. toString()
    4. getHours()
    5. getMinutes()
    6. getSeconds()
    7. setHours(int)
    8. setMinutes(int)
    9. setSeconds(int)
    10. valueOf(LocalDate)
    11. toLocalDate()
    12. toInstant()

Class Date

java.lang.Object
java.util.Date
java.sql.Date
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Date>

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.

Since:
1.1
See Also:


Web Proxy Viewer  |  New URL  |  Original Page