calendar.html
来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 658 行 · 第 1/2 页
HTML
658 行
</TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class <A HREF="../../widsets/api/Object.html" title="class in ">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../widsets/api/Object.html#toString()">toString</A>, <A HREF="../../widsets/api/Object.html#equals(Object)">equals</A>, <A HREF="../../widsets/api/Object.html#hashCode()">hashCode</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from </B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Calendar()"><!-- --></A><H3>Calendar</H3><PRE> <B>Calendar</B>()</PRE><DL><DD>Creates a calendar using the default time zone and locale. The <code>Calendar</code> is based on the current time in the default time zone with the default locale.<P></DL><HR><A NAME="Calendar(TimeZone)"><!-- --></A><H3>Calendar</H3><PRE> <B>Calendar</B>(<A HREF="../../widsets/api/TimeZone.html" title="class in ">TimeZone</A> timeZone)</PRE><DL><DD>Creates a calendar using the time zone given as argument and default locale.<P><DL><DT><B>Parameters:</B><DD><CODE>timeZone</CODE> - time zone</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="operator_get(int)"><!-- --></A><H3>operator_get</H3><PRE> int <B>operator_get</B>(int field)</PRE><DL><DD>Gets the value for a given time field.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>field</CODE> - the given time field.<DT><B>Returns:</B><DD>the value for the given time field.</DL></DD></DL><HR><A NAME="operator_set(int, int)"><!-- --></A><H3>operator_set</H3><PRE> void <B>operator_set</B>(int field, int value)</PRE><DL><DD>Sets the time field with the given value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>field</CODE> - the given time field.<DD><CODE>value</CODE> - the value to be set for the given time field.</DL></DD></DL><HR><A NAME="after(Calendar)"><!-- --></A><H3>after</H3><PRE> boolean <B>after</B>(<A HREF="../../widsets/api/Calendar.html" title="class in ">Calendar</A> when)</PRE><DL><DD>Compares the time field records. Equivalent to comparing result of conversion to UTC.<P><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="before(Calendar)"><!-- --></A><H3>before</H3><PRE> boolean <B>before</B>(<A HREF="../../widsets/api/Calendar.html" title="class in ">Calendar</A> when)</PRE><DL><DD>Compares the time field records. Equivalent to comparing result of conversion to UTC.<P><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="set(int, int, int)"><!-- --></A><H3>set</H3><PRE> void <B>set</B>(int year, int month, int date)</PRE><DL><DD>Sets the values for the fields year, month, and date. Previous values of other fields are retained. If this is not desired, call <code>clear</code> first.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the value used to set the YEAR time field.<DD><CODE>month</CODE> - the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.<DD><CODE>date</CODE> - the value used to set the DATE time field.</DL></DD></DL><HR><A NAME="set(int, int, int, int, int)"><!-- --></A><H3>set</H3><PRE> void <B>set</B>(int year, int month, int date, int hour, int minute)</PRE><DL><DD>Sets the values for the fields year, month, date, hour, and minute. Previous values of other fields are retained. If this is not desired, call <code>clear</code> first.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the value used to set the YEAR time field.<DD><CODE>month</CODE> - the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.<DD><CODE>date</CODE> - the value used to set the DATE time field.<DD><CODE>hour</CODE> - the value used to set the HOUR_OF_DAY time field.<DD><CODE>minute</CODE> - the value used to set the MINUTE time field.</DL></DD></DL><HR><A NAME="set(int, int, int, int, int, int)"><!-- --></A><H3>set</H3><PRE> void <B>set</B>(int year, int month, int date, int hour, int minute, int second)</PRE><DL><DD>Sets the values for the fields year, month, date, hour, minute, and second. Previous values of other fields are retained. If this is not desired, call <code>clear</code> first.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the value used to set the YEAR time field.<DD><CODE>month</CODE> - the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.<DD><CODE>date</CODE> - the value used to set the DATE time field.<DD><CODE>hour</CODE> - the value used to set the HOUR_OF_DAY time field.<DD><CODE>minute</CODE> - the value used to set the MINUTE time field.<DD><CODE>second</CODE> - the value used to set the SECOND time field.</DL></DD></DL><HR><A NAME="getMillis()"><!-- --></A><H3>getMillis</H3><PRE> long <B>getMillis</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).<P><DD><DL><DT><B>Returns:</B><DD>the current time as UTC milliseconds from the epoch.<DT><B>See Also:</B><DD><A HREF="../../widsets/api/Calendar.html#setMillis(long)"><CODE>setMillis(long)</CODE></A></DL></DD></DL><HR><A NAME="setMillis(long)"><!-- --></A><H3>setMillis</H3><PRE> void <B>setMillis</B>(long millis)</PRE><DL><DD>Sets this Calendar's current time from the given long value.<P><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="../../widsets/api/Calendar.html#getMillis()"><CODE>getMillis()</CODE></A></DL></DD></DL><HR><A NAME="format(int)"><!-- --></A><H3>format</H3><PRE> <A HREF="../../widsets/api/String.html" title="class in ">String</A> <B>format</B>(int format)</PRE><DL><DD>Formats calendars date and/or time as string according to current locale/language.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - FORMAT_DATE, FORMAT_TIME or FORMAT_DATETIME.</DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE> <A HREF="../../widsets/api/Calendar.html" title="class in ">Calendar</A> <B>copy</B>()</PRE><DL><DD>Creates a copy from this calendar instance.<P><DD><DL><DT><B>Returns:</B><DD>Duplicate calendar</DL></DD></DL><HR><A NAME="getTimeZone()"><!-- --></A><H3>getTimeZone</H3><PRE> <A HREF="../../widsets/api/TimeZone.html" title="class in ">TimeZone</A> <B>getTimeZone</B>()</PRE><DL><DD>Gets the <code>TimeZone</code> for this <code>Calendar</code> object.<P><DD><DL><DT><B>Returns:</B><DD>time zone</DL></DD></DL><HR><A NAME="setTimeZone(TimeZone)"><!-- --></A><H3>setTimeZone</H3><PRE> void <B>setTimeZone</B>(<A HREF="../../widsets/api/TimeZone.html" title="class in ">TimeZone</A> timeZone)</PRE><DL><DD>Sets the <code>TimeZone</code> for this <code>Calendar</code> object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>timeZone</CODE> - new time zone</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../widsets/api/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../widsets/api/ByteArray.html" title="class in "><B>PREV CLASS</B></A> <A HREF="../../widsets/api/Camera.html" title="class in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?widsets/api/Calendar.html" target="_top"><B>FRAMES</B></A> <A HREF="Calendar.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?