public final class DateFormatter
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.StringBuilder |
append(java.util.Date date,
java.lang.StringBuilder sb)
Append a
Date to a StringBuilder into RFC1123 format |
static java.lang.String |
format(java.util.Date date)
Format a
Date into RFC1123 format |
static java.util.Date |
parseHttpDate(java.lang.CharSequence txt)
Parse some text into a
Date, according to RFC6265 |
static java.util.Date |
parseHttpDate(java.lang.CharSequence txt,
int start,
int end)
Parse some text into a
Date, according to RFC6265 |
void |
reset() |
public static java.util.Date parseHttpDate(java.lang.CharSequence txt)
Date, according to RFC6265txt - text to parseDate, or null if text couldn't be parsedpublic static java.util.Date parseHttpDate(java.lang.CharSequence txt,
int start,
int end)
Date, according to RFC6265txt - text to parsestart - the start index inside txtend - the end index inside txtDate, or null if text couldn't be parsedpublic static java.lang.String format(java.util.Date date)
Date into RFC1123 formatdate - the date to formatpublic static java.lang.StringBuilder append(java.util.Date date,
java.lang.StringBuilder sb)
Date to a StringBuilder into RFC1123 formatdate - the date to formatsb - the StringBuilderpublic void reset()