All Implemented Interfaces:
Serializable, Cloneable, Comparable<Date>

  • Constructor Summary

    Constructors

    Time(int hour, int minute, int second)

    Time(long time)

    Constructs a Time object using a milliseconds time value.

  • Method Summary

    int

    getDate()

    int

    getDay()

    int

    getMonth()

    int

    getYear()

    void

    setDate(int i)

    void

    setMonth(int i)

    void

    setTime(long time)

    Sets a Time object using a milliseconds time value.

    void

    setYear(int i)

    toInstant()

    This method always throws an UnsupportedOperationException and should not be used because SQL Time values do not have a date component.

    Converts this Time object to a LocalTime.

    toString()

    Formats a time in JDBC time escape format.

    Converts a string in JDBC time escape format to a Time value.

    Obtains an instance of Time from a LocalTime object with the same hour, minute and second time value as the given LocalTime.

    Methods declared in class Date

    after, before, clone, compareTo, equals, from, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, hashCode, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTC

    boolean

    Tests if this date is after the specified date.

    boolean

    Tests if this date is before the specified date.

    Return a copy of this object.

    int

    Compares two Dates for ordering.

    boolean

    Compares two dates for equality.

    Obtains an instance of Date from an Instant object.

    int

    int

    int

    long

    Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.

    int

    int

    Returns a hash code value for this object.

    static long

    void

    void

    void

    static long

    UTC(int year, int month, int date, int hrs, int min, int sec)

    Methods declared in class Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Constructor Details

    • Time

    • Time

  • Method Details

    • setTime

    • valueOf

    • toString

    • getYear

    • getMonth

    • getDay

    • getDate

    • setYear

    • setMonth

    • setDate

    • valueOf

    • toLocalTime

    • toInstant