|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlrpc.util.DateTool
public class DateTool
Wraps a DateFormat
instance to provide thread safety.
Field Summary | |
---|---|
protected static java.lang.String |
FORMAT
|
Constructor Summary | |
---|---|
DateTool()
Uses the DateFormat string
yyyyMMdd'T'HH:mm:ss . |
Method Summary | |
---|---|
java.lang.String |
format(java.util.Date d)
|
java.util.Date |
parse(java.lang.String s)
|
void |
setTimeZone(java.util.TimeZone z)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String FORMAT
Constructor Detail |
---|
public DateTool()
DateFormat
string
yyyyMMdd'T'HH:mm:ss
.
FORMAT
Method Detail |
---|
public java.lang.String format(java.util.Date d)
d
- The date to format.
public void setTimeZone(java.util.TimeZone z)
public java.util.Date parse(java.lang.String s) throws java.text.ParseException
s
- The text to parse a date from.
java.text.ParseException
- If the date could not be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |