<!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.Date
</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="Package-java.sql.html">Previous</a>  <a href="java.sql.DriverManager.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.sql.Date
</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.Date
</pre>
<hr>
<dl>
  <dt> public class <b>Date</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 DATE value. It adds formatting and
 parsing operations to support the JDBC escape syntax for date
 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="#Date(int, int, int)"><b>Date</b></a>(int, int, int)
  <dd>  Construct a Date

 
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Date(long)"><b>Date</b></a>(long)
  <dd>  Construct a Date 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="#getHours()"><b>getHours</b></a>()
  <dd>  Returns the hour represented by this date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMinutes()"><b>getMinutes</b></a>()
  <dd>  Returns the number of minutes past the hour represented by this date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getSeconds()"><b>getSeconds</b></a>()
  <dd>  Returns the number of seconds past the minute represented by this date.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setHours(int)"><b>setHours</b></a>(int)
  <dd>  Sets the hour of this date to the specified value.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMinutes(int)"><b>setMinutes</b></a>(int)
  <dd>  Sets the minutes of this date to the specified value.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setSeconds(int)"><b>setSeconds</b></a>(int)
  <dd>  Sets the seconds 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 Date using a milliseconds time value

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Format a date 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 date escape format to a Date value

 
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Date"></a>
<a name="Date(int, int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Date</b>
<pre>
 public Date(int year,
             int month,
             int day)
</pre>
<dl>
  <dd> Construct a Date
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> year - year-1900
    <dd> month - 0 to 11
    <dd> day - 1 to 31
  </dl></dd>
</dl>
<a name="Date(long)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Date</b>
<pre>
 public Date(long date)
</pre>
<dl>
  <dd> Construct a Date using a milliseconds time value
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> date - 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 date)
</pre>
<dl>
  <dd> Set a Date using a milliseconds time value
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> date - 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_">Date</a> valueOf(<a href="java.lang.String.html#_top_">String</a> s)
</pre>
<dl>
  <dd> Convert a string in JDBC date escape format to a Date value
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - date in format "yyyy-mm-dd"
    <dt> <b>Returns:</b>
    <dd> corresponding Date
  </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 date in JDBC date escape format
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a String in yyyy-mm-dd 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="getHours()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getHours"><b>getHours</b></a>
<pre>
 public int getHours()
</pre>
<dl>
  <dd> Returns the hour represented by this date.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getHours()">getHours</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="getMinutes()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMinutes"><b>getMinutes</b></a>
<pre>
 public int getMinutes()
</pre>
<dl>
  <dd> Returns the number of minutes past the hour represented by this date.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getMinutes()">getMinutes</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="getSeconds()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSeconds"><b>getSeconds</b></a>
<pre>
 public int getSeconds()
</pre>
<dl>
  <dd> Returns the number of seconds past the minute represented by this date.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#getSeconds()">getSeconds</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="setHours(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setHours"><b>setHours</b></a>
<pre>
 public void setHours(int i)
</pre>
<dl>
  <dd> Sets the hour of this date to the specified value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setHours(int)">setHours</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="setMinutes(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMinutes"><b>setMinutes</b></a>
<pre>
 public void setMinutes(int i)
</pre>
<dl>
  <dd> Sets the minutes of this date to the specified value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setMinutes(int)">setMinutes</a> in class <a href="java.util.Date.html#_top_">Date</a>
  </dl></dd>
</dl>
<a name="setSeconds(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setSeconds"><b>setSeconds</b></a>
<pre>
 public void setSeconds(int i)
</pre>
<dl>
  <dd> Sets the seconds of this date to the specified value.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.Date.html#setSeconds(int)">setSeconds</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="Package-java.sql.html">Previous</a>  <a href="java.sql.DriverManager.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
