javax.mail.internet
public class MailDateFormat extends SimpleDateFormat
This class cannot take pattern strings. It always formats the date based on the above specification.
Version: 1.3
Constructor Summary | |
---|---|
MailDateFormat() |
Method Summary | |
---|---|
StringBuffer | format(Date date, StringBuffer buf, FieldPosition field)
Appends the string representation for the specified field to the
given string buffer. |
Date | parse(String text, ParsePosition pos)
Parses the given date in the format specified by
draft-ietf-drums-msg-fmt-08 in the current TimeZone. |
void | setCalendar(Calendar newCalendar)
Don't allow setting the calendar. |
void | setNumberFormat(NumberFormat newNumberFormat)
Don't allow setting the NumberFormat. |
format(Date)
instead.Parameters: date the date buf the buffer to append to field the current field position
Returns: the modified buffer
Parameters: text the formatted date to be parsed pos the current parse position