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
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.


Variable Index

 o leapYearDays
 o nonLeapYearDays

Constructor Index

 o EnhancedDate()
Constructor to create an EnhancedDate object from the current system date and time.
 o EnhancedDate(int, int)
Constructor to create an EnhancedDate object from a year and a Julian day integer.
 o EnhancedDate(long)
Constructor to create an EnhancedDate object from a long integer.

Method Index

 o getDayString()
Method to return the Day field in String.
 o getJulianDay()
Method to return the Julian day in String.
 o isLeapYear()
Method to determine if the year contained within this Date object is a leap year.
 o isLeapYear(int)
Static method which determines if the year specified is a leap year.
 o monthStringToInt(String)
Static method to convert month String to int.
 o monthStringToIntString(String)
Static method to convert month String to int String.
 o toShortDayString()
Method to return the Day field in String, in three-character form.

Variables

 o leapYearDays
 protected static int leapYearDays[]
 o nonLeapYearDays
 protected static int nonLeapYearDays[]

Constructors

 o EnhancedDate
 public EnhancedDate()
Constructor to create an EnhancedDate object from the current system date and time.

 o EnhancedDate
 public EnhancedDate(long date)
Constructor to create an EnhancedDate object from a long integer.

 o EnhancedDate
 public EnhancedDate(int year,
                     int julianDay)
Constructor to create an EnhancedDate object from a year and a Julian day integer.

Methods

 o isLeapYear
 public static boolean isLeapYear(int year)
Static method which determines if the year specified is a leap year.

 o isLeapYear
 public boolean isLeapYear()
Method to determine if the year contained within this Date object is a leap year.

 o getJulianDay
 public int getJulianDay()
Method to return the Julian day in String.

 o getDayString
 public String getDayString()
Method to return the Day field in String. For example, Monday, Wednesday, Sunday, etc.

 o toShortDayString
 public String toShortDayString()
Method to return the Day field in String, in three-character form. For example, Mon, Wed, Sun, etc.

 o monthStringToInt
 public static int monthStringToInt(String month) throws InvalidMonthStringException
Static method to convert month String to int. For example: "Jan" -> 1 or "January" -> 1

 o 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