All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.util.EnhancedDate
java.lang.Object
|
+----java.util.Date
|
+----cynosurex.util.EnhancedDate
- public class EnhancedDate
- extends Date
- implements CommonInterface
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.
-
leapYearDays
-
-
nonLeapYearDays
-
-
EnhancedDate()
- Constructor to create an EnhancedDate object from the current
system date and time.
-
EnhancedDate(int, int)
- Constructor to create an EnhancedDate object from a year
and a Julian day integer.
-
EnhancedDate(long)
- Constructor to create an EnhancedDate object from a long
integer.
-
getDayString()
- Method to return the Day field in String.
-
getJulianDay()
- Method to return the Julian day in String.
-
isLeapYear()
- Method to determine if the year contained within this
Date object is a leap year.
-
isLeapYear(int)
- Static method which determines if the year specified is a leap year.
-
monthStringToInt(String)
- Static method to convert month String to int.
-
monthStringToIntString(String)
- Static method to convert month String to int String.
-
toShortDayString()
- Method to return the Day field in String, in three-character
form.
leapYearDays
protected static int leapYearDays[]
nonLeapYearDays
protected static int nonLeapYearDays[]
EnhancedDate
public EnhancedDate()
- Constructor to create an EnhancedDate object from the current
system date and time.
EnhancedDate
public EnhancedDate(long date)
- Constructor to create an EnhancedDate object from a long
integer.
EnhancedDate
public EnhancedDate(int year,
int julianDay)
- Constructor to create an EnhancedDate object from a year
and a Julian day integer.
isLeapYear
public static boolean isLeapYear(int year)
- Static method which determines if the year specified is a leap year.
isLeapYear
public boolean isLeapYear()
- Method to determine if the year contained within this
Date object is a leap year.
getJulianDay
public int getJulianDay()
- Method to return the Julian day in String.
getDayString
public String getDayString()
- Method to return the Day field in String. For example,
Monday, Wednesday, Sunday, etc.
toShortDayString
public String toShortDayString()
- Method to return the Day field in String, in three-character
form. For example,
Mon, Wed, Sun, etc.
monthStringToInt
public static int monthStringToInt(String month) throws InvalidMonthStringException
- Static method to convert month String to int.
For example: "Jan" -> 1 or "January" -> 1
monthStringToIntString
public static String monthStringToIntString(String month) throws InvalidMonthStringException
- Static method to convert month String to int String.
For example: "Jan" -> "01" or "January" -> "01"
All Packages Class Hierarchy This Package Previous Next Index