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

📄 gregoriancalendar.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
&nbsp;<A NAME="methods_inherited_from_class_java.util.Calendar"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods 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#after(java.lang.Object)">after</A>, <A HREF="../../java/util/Calendar.html#before(java.lang.Object)">before</A>, <A HREF="../../java/util/Calendar.html#clear()">clear</A>, <A HREF="../../java/util/Calendar.html#clear(int)">clear</A>, <A HREF="../../java/util/Calendar.html#clone()">clone</A>, <A HREF="../../java/util/Calendar.html#complete()">complete</A>, <A HREF="../../java/util/Calendar.html#get(int)">get</A>, <A HREF="../../java/util/Calendar.html#getAvailableLocales()">getAvailableLocales</A>, <A HREF="../../java/util/Calendar.html#getFirstDayOfWeek()">getFirstDayOfWeek</A>, <A HREF="../../java/util/Calendar.html#getInstance()">getInstance</A>, <A HREF="../../java/util/Calendar.html#getInstance(java.util.Locale)">getInstance</A>, <A HREF="../../java/util/Calendar.html#getInstance(java.util.TimeZone)">getInstance</A>, <A HREF="../../java/util/Calendar.html#getInstance(java.util.TimeZone, java.util.Locale)">getInstance</A>, <A HREF="../../java/util/Calendar.html#getMinimalDaysInFirstWeek()">getMinimalDaysInFirstWeek</A>, <A HREF="../../java/util/Calendar.html#getTime()">getTime</A>, <A HREF="../../java/util/Calendar.html#getTimeInMillis()">getTimeInMillis</A>, <A HREF="../../java/util/Calendar.html#getTimeZone()">getTimeZone</A>, <A HREF="../../java/util/Calendar.html#internalGet(int)">internalGet</A>, <A HREF="../../java/util/Calendar.html#isLenient()">isLenient</A>, <A HREF="../../java/util/Calendar.html#isSet(int)">isSet</A>, <A HREF="../../java/util/Calendar.html#set(int, int)">set</A>, <A HREF="../../java/util/Calendar.html#set(int, int, int)">set</A>, <A HREF="../../java/util/Calendar.html#set(int, int, int, int, int)">set</A>, <A HREF="../../java/util/Calendar.html#set(int, int, int, int, int, int)">set</A>, <A HREF="../../java/util/Calendar.html#setFirstDayOfWeek(int)">setFirstDayOfWeek</A>, <A HREF="../../java/util/Calendar.html#setLenient(boolean)">setLenient</A>, <A HREF="../../java/util/Calendar.html#setMinimalDaysInFirstWeek(int)">setMinimalDaysInFirstWeek</A>, <A HREF="../../java/util/Calendar.html#setTime(java.util.Date)">setTime</A>, <A HREF="../../java/util/Calendar.html#setTimeInMillis(long)">setTimeInMillis</A>, <A HREF="../../java/util/Calendar.html#setTimeZone(java.util.TimeZone)">setTimeZone</A>, <A HREF="../../java/util/Calendar.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="BC"><!-- --></A><H3>BC</H3><PRE>public static final int <B>BC</B></PRE><DL><DD>Value of the <code>ERA</code> field indicating the period before the common era (before Christ), also known as BCE. The sequence of years at the transition from <code>BC</code> to <code>AD</code> is ..., 2 BC, 1 BC, 1 AD, 2 AD,...<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#ERA"><CODE>Calendar.ERA</CODE></A></DL></DD></DL><HR><A NAME="AD"><!-- --></A><H3>AD</H3><PRE>public static final int <B>AD</B></PRE><DL><DD>Value of the <code>ERA</code> field indicating the common era (Anno Domini), also known as CE. The sequence of years at the transition from <code>BC</code> to <code>AD</code> is ..., 2 BC, 1 BC, 1 AD, 2 AD,...<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/util/Calendar.html#ERA"><CODE>Calendar.ERA</CODE></A></DL></DD></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="GregorianCalendar()"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>()</PRE><DL><DD>Constructs a default GregorianCalendar using the current time in the default time zone with the default locale.</DL><HR><A NAME="GregorianCalendar(java.util.TimeZone)"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;zone)</PRE><DL><DD>Constructs a GregorianCalendar based on the current time in the given time zone with the default locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>zone</CODE> - the given time zone.</DL></DD></DL><HR><A NAME="GregorianCalendar(java.util.Locale)"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>(<A HREF="../../java/util/Locale.html">Locale</A>&nbsp;aLocale)</PRE><DL><DD>Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>aLocale</CODE> - the given locale.</DL></DD></DL><HR><A NAME="GregorianCalendar(java.util.TimeZone, java.util.Locale)"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>(<A HREF="../../java/util/TimeZone.html">TimeZone</A>&nbsp;zone,                         <A HREF="../../java/util/Locale.html">Locale</A>&nbsp;aLocale)</PRE><DL><DD>Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>zone</CODE> - the given time zone.<DD><CODE>aLocale</CODE> - the given locale.</DL></DD></DL><HR><A NAME="GregorianCalendar(int, int, int)"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>(int&nbsp;year,                         int&nbsp;month,                         int&nbsp;date)</PRE><DL><DD>Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the value used to set the YEAR time field in the calendar.<DD><CODE>month</CODE> - the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January.<DD><CODE>date</CODE> - the value used to set the DATE time field in the calendar.</DL></DD></DL><HR><A NAME="GregorianCalendar(int, int, int, int, int)"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>(int&nbsp;year,                         int&nbsp;month,                         int&nbsp;date,                         int&nbsp;hour,                         int&nbsp;minute)</PRE><DL><DD>Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the value used to set the YEAR time field in the calendar.<DD><CODE>month</CODE> - the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January.<DD><CODE>date</CODE> - the value used to set the DATE time field in the calendar.<DD><CODE>hour</CODE> - the value used to set the HOUR_OF_DAY time field in the calendar.<DD><CODE>minute</CODE> - the value used to set the MINUTE time field in the calendar.</DL></DD></DL><HR><A NAME="GregorianCalendar(int, int, int, int, int, int)"><!-- --></A><H3>GregorianCalendar</H3><PRE>public <B>GregorianCalendar</B>(int&nbsp;year,                         int&nbsp;month,                         int&nbsp;date,                         int&nbsp;hour,                         int&nbsp;minute,                         int&nbsp;second)</PRE><DL><DD>Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the value used to set the YEAR time field in the calendar.<DD><CODE>month</CODE> - the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January.<DD><CODE>date</CODE> - the value used to set the DATE time field in the calendar.<DD><CODE>hour</CODE> - the value used to set the HOUR_OF_DAY time field in the calendar.<DD><CODE>minute</CODE> - the value used to set the MINUTE time field in the calendar.<DD><CODE>second</CODE> - the value used to set the SECOND time field in the calendar.</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="setGregorianChange(java.util.Date)"><!-- --></A><H3>setGregorianChange</H3><PRE>public void <B>setGregorianChange</B>(<A HREF="../../java/util/Date.html">Date</A>&nbsp;date)</PRE><DL><DD>Sets the GregorianCalendar change date. This is the point when the switch from Julian dates to Gregorian dates occurred. Default is October 15, 1582. Previous to this, dates will be in the Julian calendar. <p> To obtain a pure Julian calendar, set the change date to <code>Date(Long.MAX_VALUE)</code>.  To obtain a pure Gregorian calendar, set the change date to <code>Date(Long.MIN_VALUE)</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the given Gregorian cutover date.</DL></DD></DL><HR><A NAME="getGregorianChange()"><!-- --></A><H3>getGregorianChange</H3><PRE>public final <A HREF="../../java/util/Date.html">Date</A> <B>getGregorianChange</B>()</PRE><DL><DD>Gets the Gregorian Calendar change date.  This is the point when the switch from Julian dates to Gregorian dates occurred. Default is October 15, 1582. Previous to this, dates will be in the Julian calendar.<DD><DL><DT><B>Returns:</B><DD>the Gregorian cutover date for this calendar.</DL></DD></DL><HR><A NAME="isLeapYear(int)"><!-- --></A><H3>isLeapYear</H3><PRE>public boolean <B>isLeapYear</B>(int&nbsp;year)</PRE><DL><DD>Determines if the given year is a leap year. Returns true if the given year is a leap year.<DD><DL><DT><B>Parameters:</B><DD><CODE>year</CODE> - the given year.<DT><B>Returns:</B><DD>true if the given year is a leap year; false otherwise.</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 GregorianCalendar to an object reference.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Calendar.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../java/util/Calendar.html">Calendar</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object reference with which to compare<DT><B>Returns:</B><DD>true if this object is equal to <code>obj</code>; false otherwise</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Override hashCode. Generates the hash code for the GregorianCalendar object<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/util/Calendar.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../java/util/Calendar.html">Calendar</A></CODE></DL></DD>

⌨️ 快捷键说明

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