|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.util.OLEDateFormat
Formats dates in a locale-sensitive manner.
| Field Summary | |
static int |
LONG
Constant used to specify long format for both dates and times. |
static int |
SHORT
Constant used to specify short format for both dates and times. |
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
abstract java.lang.String |
format(OLEDate date)
Returns a string formatted according to the style(s) passed to the getXxx() method that was used to create the OLEDateFormat. |
static OLEDateFormat |
getDateInstance(int style)
Returns a platform-dependent version of OLEDateFormat that can be used to create a date string formatted in the given style. |
static OLEDateFormat |
getDateTimeInstance(int dateStyle,
int timeStyle)
Returns a platform-dependent version of OLEDateFormat that can be used to create a date-time string formatted in the given styles. |
static OLEDateFormat |
getLocalDateInstance()
Returns a platform-dependent version of OLEDateFormat that can be used to create a date string formatted in the style typically found in item display tables. |
static OLEDateFormat |
getLocalDateTimeInstance()
Returns a platform-dependent version of OLEDateFormat that can be used to create a date/time string formatted in the style typically found in item display tables. |
static OLEDateFormat |
getTimeInstance(int style)
Returns a platform-dependent version of OLEDateFormat that can be used to create a time string formatted in the given style. |
int |
hashCode()
returns a unique hash for all instances of this type |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SHORT
public static final int LONG
| Method Detail |
public static OLEDateFormat getLocalDateTimeInstance()
public static OLEDateFormat getLocalDateInstance()
public static OLEDateFormat getTimeInstance(int style)
style - Either OLEDateFormat.SHORT or OLEDateFormat.LONG, determines the format of the resulting time string.
public static OLEDateFormat getDateInstance(int style)
style - Either OLEDateFormat.SHORT or OLEDateFormat.LONG, determines the format of the resulting date string.
public static OLEDateFormat getDateTimeInstance(int dateStyle,
int timeStyle)
dateStyle - Either OLEDateFormat.SHORT or OLEDateFormat.LONG, determines the format of the date portion of the resulting string.timeStyle - Either OLEDateFormat.SHORT or OLEDateFormat.LONG, determines the format of the time portion of the resulting string.
public abstract java.lang.String format(OLEDate date)
date - The date whose value is formatted.
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||