org.apache.log4j.helpers

Class ISO8601DateFormat

public class ISO8601DateFormat extends AbsoluteTimeDateFormat

Formats a Date in the format "yyyy-MM-dd HH:mm:ss,SSS" for example "1999-11-27 15:49:37,459".

Refer to the summary of the International Standard Date and Time Notation for more information on this format.

Since: 0.7.5

Author: Ceki Gülcü Andrew Vajoczki

Constructor Summary
ISO8601DateFormat()
ISO8601DateFormat(TimeZone timeZone)
Method Summary
StringBufferformat(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends a date in the format "YYYY-mm-dd HH:mm:ss,SSS" to sbuf.
Dateparse(String s, ParsePosition pos)
This method does not do anything but return null.

Constructor Detail

ISO8601DateFormat

public ISO8601DateFormat()

ISO8601DateFormat

public ISO8601DateFormat(TimeZone timeZone)

Method Detail

format

public StringBuffer format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends a date in the format "YYYY-mm-dd HH:mm:ss,SSS" to sbuf. For example: "1999-11-27 15:49:37,459".

Parameters: sbuf the StringBuffer to write to

parse

public Date parse(String s, ParsePosition pos)
This method does not do anything but return null.
Copyright 2000-2005 Apache Software Foundation.