Example usage for Java java.sql Time fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
boolean | after(Date when) Tests if this date is after the specified date. |
boolean | before(Date when) Tests if this date is before the specified date. |
int | compareTo(Date anotherDate) Compares two Dates for ordering. |
boolean | equals(Object obj) Compares two dates for equality. |
Class> | getClass() Returns the runtime class of this Object . |
int | getHours() Returns the hour represented by this Date object. |
int | getMinutes() Returns the number of minutes past the hour represented by this date, as interpreted in the local time zone. |
int | getSeconds() Returns the number of seconds past the minute represented by this date. |
long | getTime() Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. |
void | setSeconds(int seconds) Sets the seconds of this Date to the specified value. |
void | setTime(long time) Sets a Time object using a milliseconds time value. |
Instant | toInstant() This method always throws an UnsupportedOperationException and should not be used because SQL Time values do not have a date component. |
LocalTime | toLocalTime() Converts this Time object to a LocalTime . |
String | toString() Formats a time in JDBC time escape format. |
Time | valueOf(String s) Converts a string in JDBC time escape format to a Time value. |
Time | valueOf(LocalTime time) Obtains an instance of Time from a LocalTime object with the same hour, minute and second time value as the given LocalTime . |