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 to
allow the return the Day field as a String.
-
EnhancedDate()
- Constructor to create an EnhancedDate object from the current
system date and time.
-
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.
-
toDayString()
- Method to return the Day field in String.
-
toShortDayString()
- Method to return the Day field in String, in three-character
form.
-
toString()
- Over-rides super.toString ().
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 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.
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.
toString
public String toString()
- Over-rides super.toString ().
- Overrides:
- toString in class Date
All Packages Class Hierarchy This Package Previous Next Index