Class cynosurex.util.EnhancedDate
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(int, int, int)
Constructor to create an EnhancedDate object using the supplied arguments.
 o EnhancedDate(int, int, int, int, int)
Constructor to create an EnhancedDate object using the supplied arguments.
 o EnhancedDate(int, int, int, int, int, int)
Constructor to create an EnhancedDate object using the supplied arguments.
 o EnhancedDate(long)
Constructor to create an EnhancedDate object from a long integer.
 o EnhancedDate(String)
Constructor to create an EnhancedDate object from a String object.

Method Index

 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 toDayString()
Method to return the Day field in 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.
 o EnhancedDate
  public EnhancedDate(int year,
                      int month,
                      int date)
Constructor to create an EnhancedDate object using the supplied arguments.
 o EnhancedDate
  public EnhancedDate(int year,
                      int month,
                      int date,
                      int hrs,
                      int min)
Constructor to create an EnhancedDate object using the supplied arguments.
 o EnhancedDate
  public EnhancedDate(int year,
                      int month,
                      int date,
                      int hrs,
                      int min,
                      int sec)
Constructor to create an EnhancedDate object using the supplied arguments.
 o EnhancedDate
  public EnhancedDate(String str)
Constructor to create an EnhancedDate object from a String object.

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 toDayString
  public String toDayString()
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.

All Packages  Class Hierarchy  This Package  Previous  Next  Index