public interface DatePrinter extends DateBasic
Modifier and Type | Method and Description |
---|---|
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, getTimeZone
String format(long millis)
millis
- 日期毫秒数String format(Date date)
GregorianCalendar
格式化 Date
date
- 日期 Date
String format(Calendar calendar)
Formats a Calendar
object.
Calendar
calendar
- Calendar
<B extends Appendable> B format(long millis, B buf)
Formats a millisecond 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)
Formats a 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)
Formats a Calendar
object into the supplied Appendable
.
B
- the Appendable class type, usually StringBuilder or StringBuffer.calendar
- the calendar to formatbuf
- the buffer to format intoCopyright © 2024. All rights reserved.