SimpleDateFormat instance,
which handles a few Excel-style extensions that
are not supported by SimpleDateFormat.
Currently, the extensions are around the handling
of elapsed time, eg rendering 1 day 2 hours
as 26 hours.
| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private static final DecimalFormat | |
| private static final DecimalFormat | |
| private static final DecimalFormat | |
| private static final DecimalFormat | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char | |
| public static final char |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
object to be compared for equality o)Overrides java. Compares the specified object with this |
| public StringBuffer | format(Date
the date-time value to be formatted into a date-time string. date, StringBuffer where the new date-time text is to be appended. paramStringBuffer, FieldPosition keeps track on the position of the field within
the returned string. For example, given a date-time text
paramFieldPosition)"1996.07.10 AD at 15:08:56 PDT", if the given fieldPosition
is DateFormat#YEAR_FIELD, the begin index and end index of
fieldPosition will be set to 0 and 4, respectively.
Notice that if the same date-time field appears more than once in a
pattern, the fieldPosition will be set for the first occurrence
of that date-time field. For instance, formatting a Date to the
date-time string "1 PM PDT (Pacific Daylight Time)" using the
pattern "h a z (zzzz)" and the alignment field
DateFormat#TIMEZONE_FIELD, the begin index and end index of
fieldPosition will be set to 5 and 8, respectively, for the
first occurrence of the timezone pattern character 'z'.Overrides java. Formats the given |
| public int | hashCode()
Overrides java. Returns the hash code value for this |
| private static String | processFormatPattern(String f)
Takes a format String, and replaces Excel specific bits with our detection sequences |
| public void | setDateToBeFormatted(double date)
Used to let us know what the date being formatted is, in Excel terms, which we may wish to use when handling elapsed times. |
| dateToBeFormatted | back to summary |
|---|---|
| private double dateToBeFormatted | |
| format1digit | back to summary |
|---|---|
| private static final DecimalFormat format1digit | |
| format2digits | back to summary |
|---|---|
| private static final DecimalFormat format2digits | |
| format3digit | back to summary |
|---|---|
| private static final DecimalFormat format3digit | |
| format4digits | back to summary |
|---|---|
| private static final DecimalFormat format4digits | |
| H_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char H_BRACKET_SYMBOL | |
| HH_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char HH_BRACKET_SYMBOL | |
| L_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char L_BRACKET_SYMBOL | |
| LL_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char LL_BRACKET_SYMBOL | |
| M_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char M_BRACKET_SYMBOL | |
| MM_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char MM_BRACKET_SYMBOL | |
| MMMMM_START_SYMBOL | back to summary |
|---|---|
| public static final char MMMMM_START_SYMBOL | |
| MMMMM_TRUNCATE_SYMBOL | back to summary |
|---|---|
| public static final char MMMMM_TRUNCATE_SYMBOL | |
| S_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char S_BRACKET_SYMBOL | |
| SS_BRACKET_SYMBOL | back to summary |
|---|---|
| public static final char SS_BRACKET_SYMBOL | |
| ExcelStyleDateFormatter | back to summary |
|---|---|
| public ExcelStyleDateFormatter(String pattern) | |
| ExcelStyleDateFormatter | back to summary |
|---|---|
| public ExcelStyleDateFormatter(String pattern, DateFormatSymbols formatSymbols) | |
| ExcelStyleDateFormatter | back to summary |
|---|---|
| public ExcelStyleDateFormatter(String pattern, Locale locale) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Compares the specified object with this | |
| format | back to summary |
|---|---|
| public StringBuffer format(Date date, StringBuffer paramStringBuffer, FieldPosition paramFieldPosition) Overrides java. Doc from java. Formats the given
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns the hash code value for this
| |
| processFormatPattern | back to summary |
|---|---|
| private static String processFormatPattern(String f) Takes a format String, and replaces Excel specific bits with our detection sequences | |
| setDateToBeFormatted | back to summary |
|---|---|
| public void setDateToBeFormatted(double date) Used to let us know what the date being formatted is, in Excel terms, which we may wish to use when handling elapsed times. | |