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

📄 calendar.html

📁 是MIDP 的API 查詢文件, 大家可以看一下裡面的index.html, 再用Package 或 Class 名字來查.
💻 HTML
📖 第 1 页 / 共 3 页
字号:
public static final int <B>FRIDAY</B></PRE>
<DL>
<DD>Value of the <code>DAY_OF_WEEK</code> field indicating Friday.</DL>
<HR>

<A NAME="SATURDAY"><!-- --></A><H3>
SATURDAY</H3>
<PRE>
public static final int <B>SATURDAY</B></PRE>
<DL>
<DD>Value of the <code>DAY_OF_WEEK</code> field indicating Saturday.</DL>
<HR>

<A NAME="JANUARY"><!-- --></A><H3>
JANUARY</H3>
<PRE>
public static final int <B>JANUARY</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the first month of the year.</DL>
<HR>

<A NAME="FEBRUARY"><!-- --></A><H3>
FEBRUARY</H3>
<PRE>
public static final int <B>FEBRUARY</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the second month of the year.</DL>
<HR>

<A NAME="MARCH"><!-- --></A><H3>
MARCH</H3>
<PRE>
public static final int <B>MARCH</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the third month of the year.</DL>
<HR>

<A NAME="APRIL"><!-- --></A><H3>
APRIL</H3>
<PRE>
public static final int <B>APRIL</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the fourth month of the year.</DL>
<HR>

<A NAME="MAY"><!-- --></A><H3>
MAY</H3>
<PRE>
public static final int <B>MAY</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the fifth month of the year.</DL>
<HR>

<A NAME="JUNE"><!-- --></A><H3>
JUNE</H3>
<PRE>
public static final int <B>JUNE</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the sixth month of the year.</DL>
<HR>

<A NAME="JULY"><!-- --></A><H3>
JULY</H3>
<PRE>
public static final int <B>JULY</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the seventh month of the year.</DL>
<HR>

<A NAME="AUGUST"><!-- --></A><H3>
AUGUST</H3>
<PRE>
public static final int <B>AUGUST</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the eighth month of the year.</DL>
<HR>

<A NAME="SEPTEMBER"><!-- --></A><H3>
SEPTEMBER</H3>
<PRE>
public static final int <B>SEPTEMBER</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the ninth month of the year.</DL>
<HR>

<A NAME="OCTOBER"><!-- --></A><H3>
OCTOBER</H3>
<PRE>
public static final int <B>OCTOBER</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the tenth month of the year.</DL>
<HR>

<A NAME="NOVEMBER"><!-- --></A><H3>
NOVEMBER</H3>
<PRE>
public static final int <B>NOVEMBER</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the eleventh month of the year.</DL>
<HR>

<A NAME="DECEMBER"><!-- --></A><H3>
DECEMBER</H3>
<PRE>
public static final int <B>DECEMBER</B></PRE>
<DL>
<DD>Value of the <code>MONTH</code> field indicating the twelfth month of the year.</DL>
<HR>

<A NAME="AM"><!-- --></A><H3>
AM</H3>
<PRE>
public static final int <B>AM</B></PRE>
<DL>
<DD>Value of the <code>AM_PM</code> field indicating the period of the day from midnight to just before noon.</DL>
<HR>

<A NAME="PM"><!-- --></A><H3>
PM</H3>
<PRE>
public static final int <B>PM</B></PRE>
<DL>
<DD>Value of the <code>AM_PM</code> field indicating the period of the day from noon to just before midnight.</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="Calendar()"><!-- --></A><H3>
Calendar</H3>
<PRE>
protected <B>Calendar</B>()</PRE>
<DL>
<DD>Constructs a Calendar with the default time zone and default locale.<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../java/util/TimeZone.html#getDefault()"><CODE>TimeZone.getDefault()</CODE></A></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="getTime()"><!-- --></A><H3>
getTime</H3>
<PRE>
public final <A HREF="../../java/util/Date.html">Date</A> <B>getTime</B>()</PRE>
<DL>
<DD>Gets this Calendar's current time.<DD><DL>
<DT><B>Returns:</B><DD>the current time.<DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#setTime(java.util.Date)"><CODE>setTime(java.util.Date)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setTime(java.util.Date)"><!-- --></A><H3>
setTime</H3>
<PRE>
public final void <B>setTime</B>(<A HREF="../../java/util/Date.html">Date</A>&nbsp;date)</PRE>
<DL>
<DD>Sets this Calendar's current time with the given Date. <p> Note: Calling <code>setTime()</code> with <code>Date(Long.MAX_VALUE)</code> or <code>Date(Long.MIN_VALUE)</code> may yield incorrect field values from <code>get()</code>.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>date</CODE> - the given Date.<DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#getTime()"><CODE>getTime()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getInstance()"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../java/util/Calendar.html">Calendar</A> <B>getInstance</B>()</PRE>
<DL>
<DD>Gets a calendar using the default time zone and default locale.<DD><DL>
<DT><B>Returns:</B><DD>a Calendar.</DL>
</DD>
</DL>
<HR>

<A NAME="getInstance(java.util.TimeZone)"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../java/util/Calendar.html">Calendar</A> <B>getInstance</B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;zone)</PRE>
<DL>
<DD>Gets a calendar using the specified time zone and default locale.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>zone</CODE> - the time zone to use<DT><B>Returns:</B><DD>a Calendar.</DL>
</DD>
</DL>
<HR>

<A NAME="getTimeInMillis()"><!-- --></A><H3>
getTimeInMillis</H3>
<PRE>
protected long <B>getTimeInMillis</B>()</PRE>
<DL>
<DD>Gets this Calendar's current time as a long expressed in milliseconds after January 1, 1970, 0:00:00 GMT (the epoch).<DD><DL>
<DT><B>Returns:</B><DD>the current time as UTC milliseconds from the epoch.<DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#setTimeInMillis(long)"><CODE>setTimeInMillis(long)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setTimeInMillis(long)"><!-- --></A><H3>
setTimeInMillis</H3>
<PRE>
protected void <B>setTimeInMillis</B>(long&nbsp;millis)</PRE>
<DL>
<DD>Sets this Calendar's current time from the given long value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>millis</CODE> - the new time in UTC milliseconds from the epoch.<DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#getTimeInMillis()"><CODE>getTimeInMillis()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="get(int)"><!-- --></A><H3>
get</H3>
<PRE>
public final int <B>get</B>(int&nbsp;field)</PRE>
<DL>
<DD>Gets the value for a given time field.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>field</CODE> - the given time field (either YEAR, MONTH, DATE, DAY_OF_WEEK,                                    HOUR_OF_DAY, HOUR, AM_PM, MINUTE,                                     SECOND, or MILLISECOND<DT><B>Returns:</B><DD>the value for the given time field.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - if the parameter is not one of the above.</DL>
</DD>
</DL>
<HR>

<A NAME="set(int, int)"><!-- --></A><H3>
set</H3>
<PRE>
public final void <B>set</B>(int&nbsp;field,                      int&nbsp;value)</PRE>
<DL>
<DD>Sets the time field with the given value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>field</CODE> - the given time field. Note that the DAY_OF_WEEK field cannot be set.<DD><CODE>value</CODE> - the value to be set for the given time field.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/ArrayIndexOutOfBoundsException.html">ArrayIndexOutOfBoundsException</A></CODE> - if an illegal field parameter is received.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE>
<DL>
<DD>Compares this calendar to the specified object. The result is <code>true</code> if and only if the argument is not <code>null</code> and is a <code>Calendar</code> object that represents the same calendar as this object.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to compare with.<DT><B>Returns:</B><DD><code>true</code> if the objects are the same; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="before(java.lang.Object)"><!-- --></A><H3>
before</H3>
<PRE>
public boolean <B>before</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;when)</PRE>
<DL>
<DD>Compares the time field records. Equivalent to comparing result of conversion to UTC.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>when</CODE> - the Calendar to be compared with this Calendar.<DT><B>Returns:</B><DD>true if the current time of this Calendar is before the time of Calendar when; false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="after(java.lang.Object)"><!-- --></A><H3>
after</H3>
<PRE>
public boolean <B>after</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;when)</PRE>
<DL>
<DD>Compares the time field records. Equivalent to comparing result of conversion to UTC.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>when</CODE> - the Calendar to be compared with this Calendar.<DT><B>Returns:</B><DD>true if the current time of this Calendar is after the time of Calendar when; false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="setTimeZone(java.util.TimeZone)"><!-- --></A><H3>
setTimeZone</H3>
<PRE>
public void <B>setTimeZone</B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;value)</PRE>
<DL>
<DD>Sets the time zone with the given time zone value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the given time zone.<DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#getTimeZone()"><CODE>getTimeZone()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getTimeZone()"><!-- --></A><H3>
getTimeZone</H3>
<PRE>
public <A HREF="../../java/util/TimeZone.html">TimeZone</A> <B>getTimeZone</B>()</PRE>
<DL>
<DD>Gets the time zone.<DD><DL>
<DT><B>Returns:</B><DD>the time zone object associated with this calendar.<DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#setTimeZone(java.util.TimeZone)"><CODE>setTimeZone(java.util.TimeZone)</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/Calendar.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-all.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>
<strong>MID Profile</strong></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../java/util/Date.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="Calendar.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="mailto:midp-feedback@risc.sps.mot.com">Submit a comment or suggestion</a> Version 2.0 of MID Profile Specification<br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>

⌨️ 快捷键说明

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