org.apache.xmlrpc.util
public class DateTool extends Object
DateFormat instance to provide thread safety.
| Field Summary | |
|---|---|
| DateFormat | df |
| protected static String | FORMAT |
| Constructor Summary | |
|---|---|
| DateTool()
Uses the DateFormat string
yyyyMMdd'T'HH:mm:ss.
| |
| Method Summary | |
|---|---|
| String | format(Date d) |
| Date | parse(String s) |
| void | setTimeZone(TimeZone z) |
Parameters: d The date to format.
Returns: The formatted date.
Parameters: s The text to parse a date from.
Returns: The parsed date.
Throws: ParseException If the date could not be parsed.