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

📄 timezone.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="getDisplayName(java.util.Locale)"><!-- --></A><H3>getDisplayName</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>getDisplayName</B>(<A HREF="../../java/util/Locale.html">Locale</A>&nbsp;locale)</PRE><DL><DD>Returns a name of this time zone suitable for presentation to the user in the specified locale. This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>locale</CODE> - the locale in which to supply the display name.<DT><B>Returns:</B><DD>the human-readable name of this time zone in the given locale or in the default locale if the given locale is not recognized.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="getDisplayName(boolean, int)"><!-- --></A><H3>getDisplayName</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>getDisplayName</B>(boolean&nbsp;daylight,                                   int&nbsp;style)</PRE><DL><DD>Returns a name of this time zone suitable for presentation to the user in the default locale. If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>daylight</CODE> - if true, return the daylight savings name.<DD><CODE>style</CODE> - either <code>LONG</code> or <code>SHORT</code><DT><B>Returns:</B><DD>the human-readable name of this time zone in the default locale.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="getDisplayName(boolean, int, java.util.Locale)"><!-- --></A><H3>getDisplayName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getDisplayName</B>(boolean&nbsp;daylight,                             int&nbsp;style,                             <A HREF="../../java/util/Locale.html">Locale</A>&nbsp;locale)</PRE><DL><DD>Returns a name of this time zone suitable for presentation to the user in the specified locale. If the display name is not available for the locale, then this method returns a string in the format <code>GMT[+-]hh:mm</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>daylight</CODE> - if true, return the daylight savings name.<DD><CODE>style</CODE> - either <code>LONG</code> or <code>SHORT</code><DD><CODE>locale</CODE> - the locale in which to supply the display name.<DT><B>Returns:</B><DD>the human-readable name of this time zone in the given locale or in the default locale if the given locale is not recognized.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - style is invalid.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="useDaylightTime()"><!-- --></A><H3>useDaylightTime</H3><PRE>public abstract boolean <B>useDaylightTime</B>()</PRE><DL><DD>Queries if this time zone uses daylight savings time.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this time zone uses daylight savings time, false, otherwise.</DL></DD></DL><HR><A NAME="inDaylightTime(java.util.Date)"><!-- --></A><H3>inDaylightTime</H3><PRE>public abstract boolean <B>inDaylightTime</B>(<A HREF="../../java/util/Date.html">Date</A>&nbsp;date)</PRE><DL><DD>Queries if the given date is in daylight savings time in this time zone.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the given Date.<DT><B>Returns:</B><DD>true if the given date is in daylight savings time, false, otherwise.</DL></DD></DL><HR><A NAME="getTimeZone(java.lang.String)"><!-- --></A><H3>getTimeZone</H3><PRE>public static <A HREF="../../java/util/TimeZone.html">TimeZone</A> <B>getTimeZone</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;ID)</PRE><DL><DD>Gets the <code>TimeZone</code> for the given ID.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ID</CODE> - the ID for a <code>TimeZone</code>, either an abbreviation such as "PST", a full name such as "America/Los_Angeles", or a custom ID such as "GMT-8:00". Note that the support of abbreviations is for JDK 1.1.x compatibility only and full names should be used.<DT><B>Returns:</B><DD>the specified <code>TimeZone</code>, or the GMT zone if the given ID cannot be understood.</DL></DD></DL><HR><A NAME="getAvailableIDs(int)"><!-- --></A><H3>getAvailableIDs</H3><PRE>public static <A HREF="../../java/lang/String.html">String</A>[] <B>getAvailableIDs</B>(int&nbsp;rawOffset)</PRE><DL><DD>Gets the available IDs according to the given time zone offset.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rawOffset</CODE> - the given time zone GMT offset.<DT><B>Returns:</B><DD>an array of IDs, where the time zone for that ID has the specified GMT offset. For example, "America/Phoenix" and "America/Denver" both have GMT-07:00, but differ in daylight savings behavior.</DL></DD></DL><HR><A NAME="getAvailableIDs()"><!-- --></A><H3>getAvailableIDs</H3><PRE>public static <A HREF="../../java/lang/String.html">String</A>[] <B>getAvailableIDs</B>()</PRE><DL><DD>Gets all the available IDs supported.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of IDs.</DL></DD></DL><HR><A NAME="getDefault()"><!-- --></A><H3>getDefault</H3><PRE>public static <A HREF="../../java/util/TimeZone.html">TimeZone</A> <B>getDefault</B>()</PRE><DL><DD>Gets the default <code>TimeZone</code> for this host. The source of the default <code>TimeZone</code>  may vary with implementation.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a default <code>TimeZone</code>.</DL></DD></DL><HR><A NAME="setDefault(java.util.TimeZone)"><!-- --></A><H3>setDefault</H3><PRE>public static void <B>setDefault</B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;zone)</PRE><DL><DD>Sets the <code>TimeZone</code> that is returned by the <code>getDefault</code> method.  If <code>zone</code> is null, reset the default to the value it had originally when the VM first started.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>zone</CODE> - the new default time zone</DL></DD></DL><HR><A NAME="hasSameRules(java.util.TimeZone)"><!-- --></A><H3>hasSameRules</H3><PRE>public boolean <B>hasSameRules</B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;other)</PRE><DL><DD>Returns true if this zone has the same rule and offset as another zone. That is, if this zone differs only in ID, if at all.  Returns false if the other zone is null.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - the <code>TimeZone</code> object to be compared with<DT><B>Returns:</B><DD>true if the other zone is not null and is the same as this one, with the possible exception of the ID<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Overrides Cloneable<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></CODE> - if the object's class does not               support the <code>Cloneable</code> interface. Subclasses               that override the <code>clone</code> method can also               throw this exception to indicate that an instance cannot               be cloned.<DD><CODE><A HREF="../../java/lang/OutOfMemoryError.html">OutOfMemoryError</A></CODE> - if there is not enough memory.<DT><B>See Also: </B><DD><A HREF="../../java/lang/Cloneable.html"><CODE>Cloneable</CODE></A></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/TimeZone.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/util/TimerTask.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/util/TreeMap.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="TimeZone.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 + -