public interface DatePrinter extends DateBasic
| 限定符和类型 | 方法和说明 |
|---|---|
String |
format(Calendar calendar)
Formats a
Calendar object. |
<B extends Appendable> |
format(Calendar calendar,
B buf)
Formats a
Calendar object into the supplied Appendable. |
String |
format(Date date)
使用
GregorianCalendar 格式化 Date |
<B extends Appendable> |
format(Date date,
B buf)
Formats a
Date object into the supplied Appendable using a GregorianCalendar. |
String |
format(long millis)
格式化日期表示的毫秒数
|
<B extends Appendable> |
format(long millis,
B buf)
Formats a millisecond
long value into the supplied Appendable. |
getLocale, getPattern, getTimeZoneString format(long millis)
millis - 日期毫秒数String format(Calendar calendar)
Calendar object. 格式化 Calendarcalendar - Calendar<B extends Appendable> B format(long millis, B buf)
long value into the supplied Appendable.B - the Appendable class type, usually StringBuilder or StringBuffer.millis - the millisecond value to formatbuf - the buffer to format into<B extends Appendable> B format(Date date, B buf)
Date object into the supplied Appendable using a GregorianCalendar.B - the Appendable class type, usually StringBuilder or StringBuffer.date - the date to formatbuf - the buffer to format into<B extends Appendable> B format(Calendar calendar, B buf)
Calendar object into the supplied Appendable. The TimeZone set on the
Calendar is only used to adjust the time offset. The TimeZone specified during the construction
of the Parser will determine the TimeZone used in the formatted string.B - the Appendable class type, usually StringBuilder or StringBuffer.calendar - the calendar to formatbuf - the buffer to format intoCopyright © 2023. All rights reserved.