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

📄 gregoriancalendar.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#AD">AD</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value of the <code>ERA</code> field indicating the common era (Anno Domini), also known as CE.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#BC">BC</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value of the <code>ERA</code> field indicating the period before the common era (before Christ), also known as BCE.</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_java.util.Calendar"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class java.util.<A HREF="../../java/util/Calendar.html">Calendar</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/util/Calendar.html#AM">AM</A>, <A HREF="../../java/util/Calendar.html#AM_PM">AM_PM</A>, <A HREF="../../java/util/Calendar.html#APRIL">APRIL</A>, <A HREF="../../java/util/Calendar.html#areFieldsSet">areFieldsSet</A>, <A HREF="../../java/util/Calendar.html#AUGUST">AUGUST</A>, <A HREF="../../java/util/Calendar.html#DATE">DATE</A>, <A HREF="../../java/util/Calendar.html#DAY_OF_MONTH">DAY_OF_MONTH</A>, <A HREF="../../java/util/Calendar.html#DAY_OF_WEEK">DAY_OF_WEEK</A>, <A HREF="../../java/util/Calendar.html#DAY_OF_WEEK_IN_MONTH">DAY_OF_WEEK_IN_MONTH</A>, <A HREF="../../java/util/Calendar.html#DAY_OF_YEAR">DAY_OF_YEAR</A>, <A HREF="../../java/util/Calendar.html#DECEMBER">DECEMBER</A>, <A HREF="../../java/util/Calendar.html#DST_OFFSET">DST_OFFSET</A>, <A HREF="../../java/util/Calendar.html#ERA">ERA</A>, <A HREF="../../java/util/Calendar.html#FEBRUARY">FEBRUARY</A>, <A HREF="../../java/util/Calendar.html#FIELD_COUNT">FIELD_COUNT</A>, <A HREF="../../java/util/Calendar.html#fields">fields</A>, <A HREF="../../java/util/Calendar.html#FRIDAY">FRIDAY</A>, <A HREF="../../java/util/Calendar.html#HOUR">HOUR</A>, <A HREF="../../java/util/Calendar.html#HOUR_OF_DAY">HOUR_OF_DAY</A>, <A HREF="../../java/util/Calendar.html#isSet">isSet</A>, <A HREF="../../java/util/Calendar.html#isTimeSet">isTimeSet</A>, <A HREF="../../java/util/Calendar.html#JANUARY">JANUARY</A>, <A HREF="../../java/util/Calendar.html#JULY">JULY</A>, <A HREF="../../java/util/Calendar.html#JUNE">JUNE</A>, <A HREF="../../java/util/Calendar.html#MARCH">MARCH</A>, <A HREF="../../java/util/Calendar.html#MAY">MAY</A>, <A HREF="../../java/util/Calendar.html#MILLISECOND">MILLISECOND</A>, <A HREF="../../java/util/Calendar.html#MINUTE">MINUTE</A>, <A HREF="../../java/util/Calendar.html#MONDAY">MONDAY</A>, <A HREF="../../java/util/Calendar.html#MONTH">MONTH</A>, <A HREF="../../java/util/Calendar.html#NOVEMBER">NOVEMBER</A>, <A HREF="../../java/util/Calendar.html#OCTOBER">OCTOBER</A>, <A HREF="../../java/util/Calendar.html#PM">PM</A>, <A HREF="../../java/util/Calendar.html#SATURDAY">SATURDAY</A>, <A HREF="../../java/util/Calendar.html#SECOND">SECOND</A>, <A HREF="../../java/util/Calendar.html#SEPTEMBER">SEPTEMBER</A>, <A HREF="../../java/util/Calendar.html#SUNDAY">SUNDAY</A>, <A HREF="../../java/util/Calendar.html#THURSDAY">THURSDAY</A>, <A HREF="../../java/util/Calendar.html#time">time</A>, <A HREF="../../java/util/Calendar.html#TUESDAY">TUESDAY</A>, <A HREF="../../java/util/Calendar.html#UNDECIMBER">UNDECIMBER</A>, <A HREF="../../java/util/Calendar.html#WEDNESDAY">WEDNESDAY</A>, <A HREF="../../java/util/Calendar.html#WEEK_OF_MONTH">WEEK_OF_MONTH</A>, <A HREF="../../java/util/Calendar.html#WEEK_OF_YEAR">WEEK_OF_YEAR</A>, <A HREF="../../java/util/Calendar.html#YEAR">YEAR</A>, <A HREF="../../java/util/Calendar.html#ZONE_OFFSET">ZONE_OFFSET</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar()">GregorianCalendar</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a default GregorianCalendar using the current time in the default time zone with the default locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar(int, int, int)">GregorianCalendar</A></B>(int&nbsp;year,                  int&nbsp;month,                  int&nbsp;date)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar(int, int, int, int, int)">GregorianCalendar</A></B>(int&nbsp;year,                  int&nbsp;month,                  int&nbsp;date,                  int&nbsp;hour,                  int&nbsp;minute)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar(int, int, int, int, int, int)">GregorianCalendar</A></B>(int&nbsp;year,                  int&nbsp;month,                  int&nbsp;date,                  int&nbsp;hour,                  int&nbsp;minute,                  int&nbsp;second)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar(java.util.Locale)">GregorianCalendar</A></B>(<A HREF="../../java/util/Locale.html">Locale</A>&nbsp;aLocale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar(java.util.TimeZone)">GregorianCalendar</A></B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;zone)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a GregorianCalendar based on the current time in the given time zone with the default locale.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#GregorianCalendar(java.util.TimeZone, java.util.Locale)">GregorianCalendar</A></B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;zone,                  <A HREF="../../java/util/Locale.html">Locale</A>&nbsp;aLocale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#add(int, int)">add</A></B>(int&nbsp;field,    int&nbsp;amount)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides Calendar Date Arithmetic function.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#computeFields()">computeFields</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides Calendar Converts UTC as milliseconds to time field values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#computeTime()">computeTime</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides Calendar Converts time field values to UTC as milliseconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#equals(java.lang.Object)">equals</A></B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares this GregorianCalendar to an object reference.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getActualMaximum(int)">getActualMaximum</A></B>(int&nbsp;field)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum value that this field could have, given the current date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getActualMinimum(int)">getActualMinimum</A></B>(int&nbsp;field)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the minimum value that this field could have, given the current date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getGreatestMinimum(int)">getGreatestMinimum</A></B>(int&nbsp;field)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns highest minimum value for the given field if varies.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../java/util/Date.html">Date</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getGregorianChange()">getGregorianChange</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Gregorian Calendar change date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getLeastMaximum(int)">getLeastMaximum</A></B>(int&nbsp;field)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns lowest maximum value for the given field if varies.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getMaximum(int)">getMaximum</A></B>(int&nbsp;field)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns maximum value for the given field.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#getMinimum(int)">getMinimum</A></B>(int&nbsp;field)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns minimum value for the given field.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override hashCode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#isLeapYear(int)">isLeapYear</A></B>(int&nbsp;year)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if the given year is a leap year.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#roll(int, boolean)">roll</A></B>(int&nbsp;field,     boolean&nbsp;up)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides Calendar Time Field Rolling function.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#roll(int, int)">roll</A></B>(int&nbsp;field,     int&nbsp;amount)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Roll a field by a signed amount.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/util/GregorianCalendar.html#setGregorianChange(java.util.Date)">setGregorianChange</A></B>(<A HREF="../../java/util/Date.html">Date</A>&nbsp;date)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the GregorianCalendar change date.</TD></TR></TABLE>

⌨️ 快捷键说明

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