📄 bigdate.html
字号:
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#BigDate(java.util.Date, java.util.TimeZone)">BigDate</A></B>(java.util.Date utc,
java.util.TimeZone timeZone)</CODE>
<BR>
Constructor from Date, loses time information.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#BigDate(double)">BigDate</A></B>(double prolepticJulianDay)</CODE>
<BR>
Construct a BigDate object given the Proleptic Julian day number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#BigDate(int)">BigDate</A></B>(int ordinal)</CODE>
<BR>
Ordinal constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#BigDate(int, int, int)">BigDate</A></B>(int yyyy,
int mm,
int dd)</CODE>
<BR>
Construct a BigDate object given a Gregorian date yyyy, mm, dd; always rejects invalid dates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#BigDate(int, int, int, int)">BigDate</A></B>(int yyyy,
int mm,
int dd,
int how)</CODE>
<BR>
Construct a BigDate object given a Gregorian date yyyy, mm, dd; allows control of how invalid dates are handled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#BigDate(java.lang.String)">BigDate</A></B>(java.lang.String yyyy_mm_dd)</CODE>
<BR>
Create a BigDate object from a String of the form: yyyy-mm-dd must have 4-digit years, and use dashes between the number and no sign Does extensive checks considering leap years, missing days etc.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#addDays(int)">addDays</A></B>(int days)</CODE>
<BR>
increment this date by a number of days.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#age(com.mindprod.common11.BigDate, com.mindprod.common11.BigDate)">age</A></B>(<A HREF="../../../com/mindprod/common11/BigDate.html" title="class in com.mindprod.common11">BigDate</A> birthDate,
<A HREF="../../../com/mindprod/common11/BigDate.html" title="class in com.mindprod.common11">BigDate</A> asof)</CODE>
<BR>
calculate the age in years, months and days.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#calendarDayOfWeek()">calendarDayOfWeek</A></B>()</CODE>
<BR>
Get day of week for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#calendarDayOfWeek(int)">calendarDayOfWeek</A></B>(int ordinal)</CODE>
<BR>
Get day of week for given ordinal.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object anotherBigDate)</CODE>
<BR>
Defines Natural Order for the BigDate class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#dayAbbr(int)">dayAbbr</A></B>(int dayOfWeek)</CODE>
<BR>
Get 3-char abbreviation of a given day of the week</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#dayName(int)">dayName</A></B>(int dayOfWeek)</CODE>
<BR>
Get full name of given day of the week</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#dayOfWeek()">dayOfWeek</A></B>()</CODE>
<BR>
Get day of week for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#dayOfWeek(int)">dayOfWeek</A></B>(int ordinal)</CODE>
<BR>
Get day of week for given ordinal.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#daysInMonth(int, boolean)">daysInMonth</A></B>(int mm,
boolean leap)</CODE>
<BR>
How many days are there in a given month?</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#daysInMonth(int, int)">daysInMonth</A></B>(int mm,
int yyyy)</CODE>
<BR>
How many days are there in a given month? o</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#daysInYearPriorToMonth(int, boolean)">daysInYearPriorToMonth</A></B>(int mm,
boolean leap)</CODE>
<BR>
How many days were there in the year prior to the first day of the given month?</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#dddToMM(int, boolean)">dddToMM</A></B>(int ddd,
boolean leap)</CODE>
<BR>
Convert day number ddd in year to month.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object d)</CODE>
<BR>
Compares with another BigDate to see if they refer to the same date.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#flooredMulDiv(int, int, int)">flooredMulDiv</A></B>(int multiplicand,
int multiplier,
int divisor)</CODE>
<BR>
Multiply then divide using floored rather than the usual truncated arithmetic, using a long intermediate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getCalendarDayOfWeek()">getCalendarDayOfWeek</A></B>()</CODE>
<BR>
Get day of week for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getCopyright()">getCopyright</A></B>()</CODE>
<BR>
Embeds copyright notice</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Date</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getDate(java.util.TimeZone)">getDate</A></B>(java.util.TimeZone timeZone)</CODE>
<BR>
Get java.util.Date object corresponding to this BigDate,</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getDayOfWeek()">getDayOfWeek</A></B>()</CODE>
<BR>
Get day of week for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getDD()">getDD</A></B>()</CODE>
<BR>
get day of month for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getDDD()">getDDD</A></B>()</CODE>
<BR>
Get day number in the year for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getISODayOfWeek()">getISODayOfWeek</A></B>()</CODE>
<BR>
Get day of week 1 to 7 for this BigDate according to the ISO standard IS-8601.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getISOWeekNumber()">getISOWeekNumber</A></B>()</CODE>
<BR>
Get week number 1 to 53 of the year this date falls in, according to the rules of ISO standard IS-8601.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Date</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getLocalDate()">getLocalDate</A></B>()</CODE>
<BR>
Get java.util.Date object corresponding to this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getLocalTimeStamp()">getLocalTimeStamp</A></B>()</CODE>
<BR>
Get milliseconds since 1970 Jan 01 00:00 GMT for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getMM()">getMM</A></B>()</CODE>
<BR>
Get month of year for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getOrdinal()">getOrdinal</A></B>()</CODE>
<BR>
get days since 1970 Jan 01 for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getProlepticJulianDay()">getProlepticJulianDay</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getSeason()">getSeason</A></B>()</CODE>
<BR>
Get season of year for this BigDate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getTimeStamp(java.util.TimeZone)">getTimeStamp</A></B>(java.util.TimeZone timeZone)</CODE>
<BR>
Get milliseconds since 1970 Jan 01 00:00 GMT for this BigDate, as at the start of day 0:00.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Date</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#getUTCDate()">getUTCDate</A></B>()</CODE>
<BR>
Get java.util.Date object corresponding to this BigDate.</TD>
</TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -