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

Time (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. Time(int, int, int)
    2. Time(long)
  5. Method Details
    1. setTime(long)
    2. valueOf(String)
    3. toString()
    4. getYear()
    5. getMonth()
    6. getDay()
    7. getDate()
    8. setYear(int)
    9. setMonth(int)
    10. setDate(int)
    11. valueOf(LocalTime)
    12. toLocalTime()
    13. toInstant()

Class Time

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

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.

Since:
1.1
See Also:


Web Proxy Viewer  |  New URL  |  Original Page