Java java.sql Time fields, constructors, methods, implement or subclass

Example usage for Java java.sql Time fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql Time.

The text is from its open source code.

Constructor

Time(long time)
Constructs a Time object using a milliseconds time value.
Time(int hour, int minute, int second)
Constructs a Time object initialized with the given values for the hour, minute, and second.

Method

booleanafter(Date when)
Tests if this date is after the specified date.
booleanbefore(Date when)
Tests if this date is before the specified date.
intcompareTo(Date anotherDate)
Compares two Dates for ordering.
booleanequals(Object obj)
Compares two dates for equality.
ClassgetClass()
Returns the runtime class of this Object .
intgetHours()
Returns the hour represented by this Date object.
intgetMinutes()
Returns the number of minutes past the hour represented by this date, as interpreted in the local time zone.
intgetSeconds()
Returns the number of seconds past the minute represented by this date.
longgetTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
voidsetSeconds(int seconds)
Sets the seconds of this Date to the specified value.
voidsetTime(long time)
Sets a Time object using a milliseconds time value.
InstanttoInstant()
This method always throws an UnsupportedOperationException and should not be used because SQL Time values do not have a date component.
LocalTimetoLocalTime()
Converts this Time object to a LocalTime .
StringtoString()
Formats a time in JDBC time escape format.
TimevalueOf(String s)
Converts a string in JDBC time escape format to a Time value.
TimevalueOf(LocalTime time)
Obtains an instance of Time from a LocalTime object with the same hour, minute and second time value as the given LocalTime .