⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 time.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
             in place of this constructor</I><P><DD>Constructs a <code>Time</code> object initialized with the  given values for the hour, minute, and second. The driver sets the date components to January 1, 1970. Any method that attempts to access the date components of a <code>Time</code> object will throw a <code>java.lang.IllegalArgumentException</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>hour</CODE> - 0 to 23<DD><CODE>minute</CODE> - 0 to 59<DD><CODE>second</CODE> - 0 to 59</DL></DD></DL><HR><A NAME="Time(long)"><!-- --></A><H3>Time</H3><PRE>public <B>Time</B>(long&nbsp;time)</PRE><DL><DD>Constructs a <code>Time</code> object using a milliseconds time value.<DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - milliseconds since January 1, 1970, 00:00:00 GMT;             a negative number is milliseconds before               January 1, 1970, 00:00:00 GMT</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setTime(long)"><!-- --></A><H3>setTime</H3><PRE>public void <B>setTime</B>(long&nbsp;time)</PRE><DL><DD>Sets a <code>Time</code> object using a milliseconds time value.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#setTime(long)">setTime</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - milliseconds since January 1, 1970, 00:00:00 GMT;             a negative number is milliseconds before               January 1, 1970, 00:00:00 GMT</DL></DD></DL><HR><A NAME="valueOf(java.lang.String)"><!-- --></A><H3>valueOf</H3><PRE>public static <A HREF="../../java/sql/Time.html">Time</A> <B>valueOf</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;s)</PRE><DL><DD>Converts a string in JDBC time escape format to a <code>Time</code> value.<DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - time in format "hh:mm:ss"<DT><B>Returns:</B><DD>a corresponding <code>Time</code> object</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Formats a time in JDBC date escape format<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> in hh:mm:ss format</DL></DD></DL><HR><A NAME="getYear()"><!-- --></A><H3>getYear</H3><PRE>public int <B>getYear</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a year component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#getYear()">getYear</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><HR><A NAME="getMonth()"><!-- --></A><H3>getMonth</H3><PRE>public int <B>getMonth</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a month component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#getMonth()">getMonth</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><HR><A NAME="getDay()"><!-- --></A><H3>getDay</H3><PRE>public int <B>getDay</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a day component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#getDay()">getDay</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><HR><A NAME="getDate()"><!-- --></A><H3>getDate</H3><PRE>public int <B>getDate</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a date component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#getDate()">getDate</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><HR><A NAME="setYear(int)"><!-- --></A><H3>setYear</H3><PRE>public void <B>setYear</B>(int&nbsp;i)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a year component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#setYear(int)">setYear</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><HR><A NAME="setMonth(int)"><!-- --></A><H3>setMonth</H3><PRE>public void <B>setMonth</B>(int&nbsp;i)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a month component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#setMonth(int)">setMonth</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><HR><A NAME="setDate(int)"><!-- --></A><H3>setDate</H3><PRE>public void <B>setDate</B>(int&nbsp;i)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;<P><DD>This method is deprecated and should not be used because SQL <code>TIME</code>  values do not have a date component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Date.html#setDate(int)">setDate</A></CODE> in class <CODE><A HREF="../../java/util/Date.html">Date</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this           method is invoked</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Time.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/sql/SQLPermission.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/sql/Timestamp.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Time.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -