java.text.DateFormat . You can obtain an object implementing this
interface by using one of the FastDateFormat factory methods.Warning
Since binary compatible methods may be added to this interface in any release, developers are not expected to implement this interface.
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public < the Appendable class type, usually StringBuilder or StringBuffer. B extends Appendable> B | Returns: the specified string buffer.the calendar to format. calendar, B the buffer to format into. buf)Formats a |
| public StringBuffer | Returns: the specified string buffer.the calendar to format. calendar, StringBuffer the buffer to format into. buf)
Deprecated
Use {
format(Calendar, Appendable).
Formats a |
| public String | Returns: the formatted stringthe date to format date)Formats a |
| public < the Appendable class type, usually StringBuilder or StringBuffer. B extends Appendable> B | Returns: the specified string buffer.the date to format. date, B the buffer to format into. buf)Formats a |
| public StringBuffer | Returns: the specified string buffer.the date to format. date, StringBuffer the buffer to format into. buf)
Deprecated
Use {
format(Date, Appendable).
Formats a |
| public String | Returns: the formatted string.the millisecond value to format. millis)Formats a millisecond |
| public < the Appendable class type, usually StringBuilder or StringBuffer. B extends Appendable> B | Returns: the specified string buffer.the millisecond value to format. millis, B the buffer to format into. buf)Formats a millisecond |
| public StringBuffer | Returns: the specified string buffer.the millisecond value to format. millis, StringBuffer the buffer to format into. buf)
Deprecated
Use {
format(long, Appendable).
Formats a millisecond |
| public StringBuffer | Returns: the buffer passed in.the object to format. obj, StringBuffer the buffer to append to. toAppendTo, FieldPosition the position - ignored. pos) |
| public Locale | |
| public String | Returns: the pattern,java. compatible.Gets the pattern used by this printer. |
| public TimeZone |
| format | back to summary |
|---|---|
| public String format(Calendar calendar) Formats a | |
| format | back to summary |
|---|---|
| public <B extends Appendable> B format(Calendar calendar, B buf) Formats a
| |
| format | back to summary |
|---|---|
| public StringBuffer format(Calendar calendar, StringBuffer buf)
Deprecated Formats a
| |
| format | back to summary |
|---|---|
| public String format(Date date) Formats a | |
| format | back to summary |
|---|---|
| public <B extends Appendable> B format(Date date, B buf) Formats a
| |
| format | back to summary |
|---|---|
| public StringBuffer format(Date date, StringBuffer buf)
Deprecated Use { Formats a
| |
| format | back to summary |
|---|---|
| public String format(long millis) Formats a millisecond
| |
| format | back to summary |
|---|---|
| public <B extends Appendable> B format(long millis, B buf) Formats a millisecond
| |
| format | back to summary |
|---|---|
| public StringBuffer format(long millis, StringBuffer buf)
Deprecated Use { Formats a millisecond
| |
| format | back to summary |
|---|---|
| public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) Formats a
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Gets the locale used by this printer.
| |
| getPattern | back to summary |
|---|---|
| public String getPattern() Gets the pattern used by this printer.
| |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone() Gets the time zone used by this printer. This zone is always used for
| |