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.
-
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(int, int, int)
- Constructor to create an EnhancedDate object using the
supplied arguments.
-
EnhancedDate(int, int, int, int, int)
- Constructor to create an EnhancedDate object using the
supplied arguments.
-
EnhancedDate(int, int, int, int, int, int)
- Constructor to create an EnhancedDate object using the
supplied arguments.
-
EnhancedDate(long)
- Constructor to create an EnhancedDate object from a long
integer.
-
EnhancedDate(String)
- Constructor to create an EnhancedDate object from a
String object.
-
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.
-
toDayString()
- Method to return the Day field in 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.
EnhancedDate
public EnhancedDate(int year,
int month,
int date)
- Constructor to create an EnhancedDate object using the
supplied arguments.
EnhancedDate
public EnhancedDate(int year,
int month,
int date,
int hrs,
int min)
- Constructor to create an EnhancedDate object using the
supplied arguments.
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.
EnhancedDate
public EnhancedDate(String str)
- Constructor to create an EnhancedDate object from a
String object.
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.
toDayString
public String toDayString()
- 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.
All Packages Class Hierarchy This Package Previous Next Index