Note
breaks fieldPosition param of format(Date, StringBuffer, FieldPosition). If you care about the field position, call the underlying DateFormat directly.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DateFormat | |
| pack-priv final transient FieldPosition | |
| pack-priv long | |
| pack-priv final StringBuffer | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuffer | format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
Implements abstract java. Note breaks functionality of fieldPosition param. |
| public StringBuilder | format(Date date, StringBuilder toAppendTo, FieldPosition fieldPosition)
Note breaks functionality of fieldPosition param. |
| public Date | parse(String text, ParsePosition pos)
Implements abstract java. Parse a date/time string according to the given parse position. |
| df | back to summary |
|---|---|
| pack-priv final DateFormat df | |
| fp | back to summary |
|---|---|
| pack-priv final transient FieldPosition fp | |
| lastSec | back to summary |
|---|---|
| pack-priv long lastSec | |
| sb | back to summary |
|---|---|
| pack-priv final StringBuffer sb | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| FastDateFormat | back to summary |
|---|---|
| public FastDateFormat(DateFormat df) | |
| format | back to summary |
|---|---|
| public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) Implements abstract java. Note breaks functionality of fieldPosition param. Also: there's a bug in SimpleDateFormat with "S" and "SS", use "SSS" instead if you want a msec field.
| |
| format | back to summary |
|---|---|
| public StringBuilder format(Date date, StringBuilder toAppendTo, FieldPosition fieldPosition) Note breaks functionality of fieldPosition param. Also: there's a bug in SimpleDateFormat with "S" and "SS", use "SSS" instead if you want a msec field. | |
| parse | back to summary |
|---|---|
| public Date parse(String text, ParsePosition pos) Implements abstract java. Doc from java. Parse a date/time string according to the given parse position. For
example, if By default, parsing is lenient: If the input is not in the form used
by this object's format method but can still be parsed as a date, then
the parse succeeds. Clients may insist on strict adherence to the
format by calling This parsing operation uses the
| |