java.lang.Object | ||
↳ | java.util.Date | |
↳ | java.sql.Time |
Java representation of an SQL TIME
value. Provides utilities to
format and parse the time's representation as a String in JDBC escape format.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor was deprecated
in API level 1.
Use the constructor
Time(long) instead. | |||||||||||
Constructs a
Time object using a supplied time specified in
milliseconds. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a date component. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a day component. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a month component. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a year component. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a date component. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a month component. | |||||||||||
Sets the time for this
Time object to the supplied milliseconds
value. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time object does not have a year component. | |||||||||||
Formats the
Time as a String in JDBC escape format: hh:mm:ss . | |||||||||||
Creates a
Time object from a string holding a time represented in
JDBC escape format: hh:mm:ss . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.Date
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
This constructor was deprecated
in API level 1.
Use the constructor Time(long)
instead.
Constructs a Time
object using the supplied values for Hour,
Minute and Second. The Year, Month and
Day elements of the Time
object are set to the date
of the Epoch (January 1, 1970).
Any attempt to access the Year, Month or Day
elements of a Time
object will result in an IllegalArgumentException
.
The result is undefined if any argument is out of bounds.
theHour | a value in the range [0,23] . |
---|---|
theMinute | a value in the range [0,59] . |
theSecond | a value in the range [0,59] .
|
Constructs a Time
object using a supplied time specified in
milliseconds.
theTime | a Time specified in milliseconds since the
Epoch (January 1st 1970, 00:00:00.000).
|
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a date component.
Returns the gregorian calendar day of the month for this Date
object.
IllegalArgumentException | if this method is called. |
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a day component.
Returns the gregorian calendar day of the week for this Date
object.
IllegalArgumentException | if this method is called. |
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a month component.
Returns the gregorian calendar month for this Date
object.
IllegalArgumentException | if this method is called. |
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a year component.
Returns the gregorian calendar year since 1900 for this Date
object.
IllegalArgumentException | if this method is called. |
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a date component.
Sets the gregorian calendar day of the month for this Date
object.
i | the day of the month. |
---|
IllegalArgumentException | if this method is called. |
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a month component.
Sets the gregorian calendar month for this Date
object.
i | the month. |
---|
IllegalArgumentException | if this method is called. |
---|
Sets the time for this Time
object to the supplied milliseconds
value.
time | A time value expressed as milliseconds since the Epoch. Negative values are milliseconds before the Epoch. The Epoch is January 1 1970, 00:00:00.000. |
---|
This method is deprecated.
This method is deprecated and must not be used. An SQL
Time
object does not have a year component.
Sets the gregorian calendar year since 1900 for this Date
object.
i | the year since 1900. |
---|
IllegalArgumentException | if this method is called. |
---|
Formats the Time
as a String in JDBC escape format: hh:mm:ss
.
Time
value in JDBC escape
format: HH:mm:ss
Creates a Time
object from a string holding a time represented in
JDBC escape format: hh:mm:ss
.
An exception occurs if the input string does not comply with this format.
timeString | A String representing the time value in JDBC escape format:
hh:mm:ss . |
---|
Time
object set to a time corresponding to the given
time.IllegalArgumentException | if the supplied time string is not in JDBC escape format. |
---|