📄 bigdate.html
字号:
<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#getUTCTimeStamp()">getUTCTimeStamp</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#getWeekNumber()">getWeekNumber</A></B>()</CODE>
<BR>
Get week number 1 to 53 of the year this date falls in.</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#getYYYY()">getYYYY</A></B>()</CODE>
<BR>
Get 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#hashCode()">hashCode</A></B>()</CODE>
<BR>
hashCode for use in Hashtable lookup</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#isLeap(int)">isLeap</A></B>(int yyyy)</CODE>
<BR>
Is the given year a leap year, considering history, mod 100 and mod 400 rules? By 1582, this excess of leap years had built up noticeably.</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#isoDayOfWeek(int)">isoDayOfWeek</A></B>(int ordinal)</CODE>
<BR>
Get day of week 1 to 7 for this ordinal 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>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#isValid(int, int, int)">isValid</A></B>(int yyyy,
int mm,
int dd)</CODE>
<BR>
Test to see if the given yyyy, mm, dd date is legitimate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#isValid(java.lang.String)">isValid</A></B>(java.lang.String yyyy_mm_dd)</CODE>
<BR>
Test to see if the given yyyy-mm-dd is a date as a String is legitimate.</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#jan01OfYear(int)">jan01OfYear</A></B>(int yyyy)</CODE>
<BR>
Ordinal date of Jan 01 of the given year.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/mindprod/common11/BigDate.html" title="class in com.mindprod.common11">BigDate</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#localToday()">localToday</A></B>()</CODE>
<BR>
Returns a BigDate object initialised to today's local date.</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#monthAbbr(int)">monthAbbr</A></B>(int mm)</CODE>
<BR>
Get 3-char abbreviation of a given month of the year.</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#monthName(int)">monthName</A></B>(int mm)</CODE>
<BR>
Get full name of a given month of the year.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/mindprod/common11/BigDate.html" title="class in com.mindprod.common11">BigDate</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#nearestXXXDay(int)">nearestXXXDay</A></B>(int dayOfWeek)</CODE>
<BR>
Find the BigDate with date closest to this one with the given day of week.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#normalise()">normalise</A></B>()</CODE>
<BR>
Clean up an invalid date, leaving the results internally.<br/> e.g.</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#nthXXXDay(int, int, int, int)">nthXXXDay</A></B>(int which,
int dayOfWeek,
int yyyy,
int mm)</CODE>
<BR>
Find the first monday in a given month, the 3rd monday or the last Thursday...</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#ordinalOfnthXXXDay(int, int, int, int)">ordinalOfnthXXXDay</A></B>(int which,
int dayOfWeek,
int yyyy,
int mm)</CODE>
<BR>
Find the first monday in a given month, the 3rd monday or the last Thursday...</TD>
</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#set(int)">set</A></B>(int ordinal)</CODE>
<BR>
Set the ordinal field, and compute the equivalent internal Gregorian yyyy mm dd fields.</TD>
</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#set(int, int, int)">set</A></B>(int yyyy,
int mm,
int dd)</CODE>
<BR>
Set the yyyy mm dd Gregorian fields, and compute the internal ordinal equivalent.</TD>
</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#set(int, int, int, int)">set</A></B>(int yyyy,
int mm,
int dd,
int how)</CODE>
<BR>
Set the Gregorian fields, and compute the ordinal equivalent with the same modifiers CHECK, NORMALIZE, BYPASSCHECK as the constructor.</TD>
</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#setDateAtTime(long, java.util.TimeZone)">setDateAtTime</A></B>(long utcTimestamp,
java.util.TimeZone timeZone)</CODE>
<BR>
Sets the date that corresponding to a given utc timestamp at a given TimeZone.</TD>
</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#setOrdinal(int)">setOrdinal</A></B>(int ordinal)</CODE>
<BR>
Set the ordinal field, and compute the equivalent internal Gregorian yyyy mm dd fields.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/mindprod/common11/BigDate.html" title="class in com.mindprod.common11">BigDate</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#today(java.util.TimeZone)">today</A></B>(java.util.TimeZone timeZone)</CODE>
<BR>
Returns a BigDate object initialised to the date right now in the given timezone.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#toDowMMDDYY()">toDowMMDDYY</A></B>()</CODE>
<BR>
Convert date to a human-readable String [wed mm/dd/yy]</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#toGregorian()">toGregorian</A></B>()</CODE>
<BR>
converts ordinal to YYYY MM DD, leaving results internally.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#toOrdinal()">toOrdinal</A></B>()</CODE>
<BR>
Convert date in form YYYY MM DD into days since the epoch, leaving results internally.</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#toOrdinal(int, int, int)">toOrdinal</A></B>(int yyyy,
int mm,
int dd)</CODE>
<BR>
Convert date in form YYYY MM DD into days since the 1970 Jan 01.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#toString()">toString</A></B>()</CODE>
<BR>
Convert date to a human-readable String.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/mindprod/common11/BigDate.html" title="class in com.mindprod.common11">BigDate</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/mindprod/common11/BigDate.html#UTCToday()">UTCToday</A></B>()</CODE>
<BR>
Returns a BigDate object initialised to today's UTC (Greenwich GMT) date, in other words the date and time in Greenwich England right now without any summer time correction.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.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 java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="isBritish"><!-- --></A><H3>
isBritish</H3>
<PRE>
public static final boolean <B>isBritish</B></PRE>
<DL>
<DD>PLEASE CONFIGURE isBritish BEFORE COMPILING. Mysterious missing days in the calendar. Pope Gregory: 1582 Oct 4 Thursday, was followed immediately by 1582 Oct 15 Friday dropping 10 days. British: 1752 Sep 2 Wednesday was followed immediately by 1752 Sep 14 Thursday dropping 12 days. Constant: true if you want the British calender, false if Pope Gregory's. You must recompile for it to have effect. For Britain, the USA and Canada it should be true.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.mindprod.common11.BigDate.isBritish">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="APR"><!-- --></A><H3>
APR</H3>
<PRE>
public static final int <B>APR</B></PRE>
<DL>
<DD>April is 4
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.mindprod.common11.BigDate.APR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="APRIL"><!-- --></A><H3>
APRIL</H3>
<PRE>
public static final int <B>APRIL</B></PRE>
<DL>
<DD>April is 4
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.mindprod.common11.BigDate.APRIL">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="AUG"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -