anderix.util
Class SuperDate

java.lang.Object
  extended by anderix.util.SuperDate

public class SuperDate
extends java.lang.Object


Field Summary
static int APRIL
           
static int AUGUST
           
static int DECEMBER
           
static int FEBRUARY
           
static int FRIDAY
           
static int JANUARY
           
static int JULY
           
static int JUNE
           
static int MARCH
           
static int MAY
           
static int MONDAY
           
static int NOVEMBER
           
static int OCTOBER
           
static int SATURDAY
           
static int SEPTEMBER
           
static int SUNDAY
           
static int THURSDAY
           
static int TUESDAY
           
static int WEDNESDAY
           
 
Constructor Summary
SuperDate()
           
SuperDate(java.util.Date d)
           
SuperDate(long d)
           
SuperDate(java.lang.String d)
           
SuperDate(java.lang.String d, java.lang.String simpleDateFormat)
           
 
Method Summary
 int compareToDay(SuperDate compareToSuperDate)
           
 int compareToHours(SuperDate compareToSuperDate)
           
 int compareToMilliseconds(SuperDate compareToSuperDate)
           
 int compareToMinutes(SuperDate compareToSuperDate)
           
 int compareToMonth(SuperDate compareToSuperDate)
           
 int compareToSeconds(SuperDate compareToSuperDate)
           
 int compareToYear(SuperDate compareToSuperDate)
           
 java.lang.String format(java.lang.String pattern)
           
 java.lang.String formatDateFull()
           
 java.lang.String formatDateLong()
           
 java.lang.String formatDateMedium()
           
 java.lang.String formatDateShort()
           
 java.lang.String formatDateTimeFull()
           
 java.lang.String formatDateTimeLocal()
           
 java.lang.String formatDateTimeLong()
           
 java.lang.String formatDateTimeMedium()
           
 java.lang.String formatDateTimeShort()
           
 java.lang.String formatDateTimeStamp()
           
 java.lang.String formatDateYearMonthDay()
           
 java.lang.String formatTimeFull()
           
 java.lang.String formatTimeLong()
           
 java.lang.String formatTimeMedium()
           
 java.lang.String formatTimeShort()
           
 int getDayOfMonth()
           
 int getDayOfWeek()
           
 java.lang.String getDayOfWeekString()
           
 int getHours()
           
 int getMilliseconds()
           
 int getMinutes()
           
 int getMonth()
           
 java.lang.String getMonthString()
           
 int getSeconds()
           
 int getYear()
           
 java.util.Date parse(java.lang.String d)
           
 java.util.Date parse(java.lang.String d, java.lang.String simpleDateFormat)
           
 java.util.Calendar toCalendar()
           
 java.util.Date toDate()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APRIL

public static final int APRIL
See Also:
Constant Field Values

AUGUST

public static final int AUGUST
See Also:
Constant Field Values

DECEMBER

public static final int DECEMBER
See Also:
Constant Field Values

FEBRUARY

public static final int FEBRUARY
See Also:
Constant Field Values

FRIDAY

public static final int FRIDAY
See Also:
Constant Field Values

JANUARY

public static final int JANUARY
See Also:
Constant Field Values

JULY

public static final int JULY
See Also:
Constant Field Values

JUNE

public static final int JUNE
See Also:
Constant Field Values

MARCH

public static final int MARCH
See Also:
Constant Field Values

MAY

public static final int MAY
See Also:
Constant Field Values

MONDAY

public static final int MONDAY
See Also:
Constant Field Values

NOVEMBER

public static final int NOVEMBER
See Also:
Constant Field Values

OCTOBER

public static final int OCTOBER
See Also:
Constant Field Values

SATURDAY

public static final int SATURDAY
See Also:
Constant Field Values

SEPTEMBER

public static final int SEPTEMBER
See Also:
Constant Field Values

SUNDAY

public static final int SUNDAY
See Also:
Constant Field Values

THURSDAY

public static final int THURSDAY
See Also:
Constant Field Values

TUESDAY

public static final int TUESDAY
See Also:
Constant Field Values

WEDNESDAY

public static final int WEDNESDAY
See Also:
Constant Field Values
Constructor Detail

SuperDate

public SuperDate()

SuperDate

public SuperDate(java.util.Date d)

SuperDate

public SuperDate(long d)

SuperDate

public SuperDate(java.lang.String d)
          throws java.text.ParseException
Throws:
java.text.ParseException

SuperDate

public SuperDate(java.lang.String d,
                 java.lang.String simpleDateFormat)
          throws java.text.ParseException
Throws:
java.text.ParseException
Method Detail

parse

public java.util.Date parse(java.lang.String d)
                     throws java.text.ParseException
Throws:
java.text.ParseException

parse

public java.util.Date parse(java.lang.String d,
                            java.lang.String simpleDateFormat)
                     throws java.text.ParseException
Throws:
java.text.ParseException

getDayOfMonth

public int getDayOfMonth()

getDayOfWeek

public int getDayOfWeek()

getDayOfWeekString

public java.lang.String getDayOfWeekString()

getMonth

public int getMonth()

getMonthString

public java.lang.String getMonthString()

getYear

public int getYear()

getHours

public int getHours()

getMinutes

public int getMinutes()

getSeconds

public int getSeconds()

getMilliseconds

public int getMilliseconds()

toDate

public java.util.Date toDate()

toCalendar

public java.util.Calendar toCalendar()

formatDateFull

public java.lang.String formatDateFull()

formatDateLong

public java.lang.String formatDateLong()

formatDateShort

public java.lang.String formatDateShort()

formatDateMedium

public java.lang.String formatDateMedium()

formatDateYearMonthDay

public java.lang.String formatDateYearMonthDay()

formatTimeFull

public java.lang.String formatTimeFull()

formatTimeLong

public java.lang.String formatTimeLong()

formatTimeShort

public java.lang.String formatTimeShort()

formatTimeMedium

public java.lang.String formatTimeMedium()

formatDateTimeFull

public java.lang.String formatDateTimeFull()

formatDateTimeLong

public java.lang.String formatDateTimeLong()

formatDateTimeShort

public java.lang.String formatDateTimeShort()

formatDateTimeMedium

public java.lang.String formatDateTimeMedium()

formatDateTimeStamp

public java.lang.String formatDateTimeStamp()

formatDateTimeLocal

public java.lang.String formatDateTimeLocal()

format

public java.lang.String format(java.lang.String pattern)

compareToYear

public int compareToYear(SuperDate compareToSuperDate)

compareToMonth

public int compareToMonth(SuperDate compareToSuperDate)

compareToDay

public int compareToDay(SuperDate compareToSuperDate)

compareToHours

public int compareToHours(SuperDate compareToSuperDate)

compareToMinutes

public int compareToMinutes(SuperDate compareToSuperDate)

compareToSeconds

public int compareToSeconds(SuperDate compareToSuperDate)

compareToMilliseconds

public int compareToMilliseconds(SuperDate compareToSuperDate)