|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
cynosurex.util.EnhancedDate
public class EnhancedDate
EnhancedDate extends the Java Date class. It added the ability to return day as a string and the ability to return the Julian day as a integer.
Field Summary | |
---|---|
protected java.util.Calendar |
calendar
|
protected static int[] |
leapYearDays
|
protected static int[] |
nonLeapYearDays
|
protected java.util.TimeZone |
tz
|
Fields inherited from interface cynosurex.internal.CommonInterface |
---|
copyright, copyrightYears, notice, program, version |
Fields inherited from interface cynosurex.internal.AuthorCommon |
---|
author, copyrightSymbol, noticeMsg, rights |
Fields inherited from interface cynosurex.internal.CompanyCommon |
---|
company, email, website |
Constructor Summary | |
---|---|
EnhancedDate()
Constructor to create an EnhancedDate object from the current system date and time. |
|
EnhancedDate(int year,
int julianDay)
Constructor to create an EnhancedDate object from a year and a Julian day integer. |
|
EnhancedDate(long date)
Constructor to create an EnhancedDate object from a long integer. |
Method Summary | |
---|---|
java.lang.String |
getDayString()
Method to return the Day field in String. |
int |
getJulianDay()
Method to return the Julian day in String. |
java.lang.String |
getMonthString()
Method to return the Month field in String. |
java.lang.String |
getShortDayString()
Method to return the Day field in String, in three-character form. |
java.lang.String |
getShortMonthString()
Method to return the Month field in String, in three-character form. |
static boolean |
isDateString(java.lang.CharSequence date)
This method checks the passed-in string to see if it is formatted as a valid date string. |
boolean |
isLeapYear()
Method to determine if the year contained within this Date object is a leap year. |
static boolean |
isLeapYear(int year)
Static method which determines if the year specified is a leap year. |
static int |
monthStringToInt(java.lang.String month)
Static method to convert month String to int. |
static java.lang.String |
monthStringToIntString(java.lang.String month)
Static method to convert month String to int String. |
java.lang.String |
to_RFC822_String()
Returns the current date and time in the RFC 822 string format. |
java.lang.String |
to_RSS_String()
Returns the current date and time in a string format that is compatible with RSS feed. |
java.lang.String |
toShortDayString()
Deprecated. |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static int[] leapYearDays
protected static int[] nonLeapYearDays
protected java.util.TimeZone tz
protected java.util.Calendar calendar
Constructor Detail |
---|
public EnhancedDate()
public EnhancedDate(long date)
public EnhancedDate(int year, int julianDay)
Method Detail |
---|
public java.lang.String getDayString()
public int getJulianDay()
public java.lang.String getMonthString()
public java.lang.String getShortDayString()
public java.lang.String getShortMonthString()
public static boolean isDateString(java.lang.CharSequence date)
public boolean isLeapYear()
public static boolean isLeapYear(int year)
public static int monthStringToInt(java.lang.String month) throws InvalidMonthStringException
InvalidMonthStringException
public static java.lang.String monthStringToIntString(java.lang.String month) throws InvalidMonthStringException
InvalidMonthStringException
public java.lang.String to_RFC822_String()
public java.lang.String to_RSS_String()
public java.lang.String toShortDayString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |