<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.sql.Time
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.sql.html">This Package</a>  <a href="java.sql.DriverPropertyInfo.html#_top_">Previous</a>  <a href="java.sql.Timestamp.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.sql.Time
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.util.Date.html#_top_">java.util.Date</a>
           |
           +----java.sql.Time
</pre>
<hr>
<dl>
  <dt> public class <b>Time</b>
  <dt> extends <a href="java.util.Date.html#_top_">Date</a>
</dl>
<P>This class is a thin wrapper around java.util.Date that allows
 JDBC to identify this as a SQL TIME value. It adds formatting and
 parsing operations to support the JDBC escape syntax for time
 values.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Time(int, int, int)"><b>Time</b></a>(int, int, int)
  <dd>  Construct a Time Object

 
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Time(long)"><b>Time</b></a>(long)
  <dd>  Construct a Time using a milliseconds time value

 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDate()"><b>getDate</b></a>()
  <dd>  Returns the day of the month represented by this date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDay()"><b>getDay</b></a>()
  <dd>  Returns the day of the week represented by this date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMonth()"><b>getMonth</b></a>()
  <dd>  Returns the month represented by this date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getYear()"><b>getYear</b></a>()
  <dd>  Returns the year represented by this date, minus 1900.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setDate(int)"><b>setDate</b></a>(int)
  <dd>  Sets the day of the month of this date to the specified value.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMonth(int)"><b>setMonth</b></a>(int)
  <dd>  Sets the month of this date to the specified value.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setTime(long)"><b>setTime</b></a>(long)
  <dd>  Set a Time using a milliseconds time value

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setYear(int)"><b>setYear</b></a>(int)
  <dd>  Sets the year of this date to be the specified value plus 1900.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Format a time in JDBC date escape format  

 
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#valueOf(java.lang.String)"><b>valueOf</b></a>(String)
  <dd>  Convert a string in JDBC time escape format to a Time value

 
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Time"></a>
<a name="Time(int, int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Time</b>
<pre>
 public Time(int hour,
             int minute,
             int second)
</pre>
<dl>
  <dd> Construct a Time Object
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> hour - 0 to 23
    <dd> minute - 0 to 59
    <dd> second - 0 to 59
  </dl></dd>
</dl>
<a name="Time(long)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Time</b>
<pre>
 public Time(long time)
</pre>
<dl>
  <dd> Construct a Time using a milliseconds time value
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> time - milliseconds since January 1, 1970, 00:00:00 GMT
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="setTime(long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setTime"><b>setTime</b></a>
<pre>
 public void setTime(long time)
</pre>
<dl>
  <dd> Set a Time using a milliseconds time value
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> time - milliseconds since January 1, 1970, 00:00:00 GMT
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setTime(long)">setTime</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="valueOf(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="valueOf"><b>valueOf</b></a>
<pre>
 public static <a href="#_top_">Time</a> valueOf(<a href="java.lang.String.html#_top_">String</a> s)
</pre>
<dl>
  <dd> Convert a string in JDBC time escape format to a Time value
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - time in format "hh:mm:ss"
    <dt> <b>Returns:</b>
    <dd> corresponding Time
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Format a time in JDBC date escape format
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a String in hh:mm:ss format
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#toString()">toString</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="getYear()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getYear"><b>getYear</b></a>
<pre>
 public int getYear()
</pre>
<dl>
  <dd> Returns the year represented by this date, minus 1900.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getYear()">getYear</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="getMonth()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMonth"><b>getMonth</b></a>
<pre>
 public int getMonth()
</pre>
<dl>
  <dd> Returns the month represented by this date.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getMonth()">getMonth</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="getDay()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDay"><b>getDay</b></a>
<pre>
 public int getDay()
</pre>
<dl>
  <dd> Returns the day of the week represented by this date.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getDay()">getDay</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="getDate()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDate"><b>getDate</b></a>
<pre>
 public int getDate()
</pre>
<dl>
  <dd> Returns the day of the month represented by this date.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getDate()">getDate</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="setYear(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setYear"><b>setYear</b></a>
<pre>
 public void setYear(int i)
</pre>
<dl>
  <dd> Sets the year of this date to be the specified value plus 1900.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setYear(int)">setYear</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="setMonth(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMonth"><b>setMonth</b></a>
<pre>
 public void setMonth(int i)
</pre>
<dl>
  <dd> Sets the month of this date to the specified value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setMonth(int)">setMonth</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="setDate(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setDate"><b>setDate</b></a>
<pre>
 public void setDate(int i)
</pre>
<dl>
  <dd> Sets the day of the month of this date to the specified value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setDate(int)">setDate</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.sql.html">This Package</a>  <a href="java.sql.DriverPropertyInfo.html#_top_">Previous</a>  <a href="java.sql.Timestamp.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
