public class

ISO8601DateFormat

extends AbsoluteTimeDateFormat
java.lang.Object
   ↳ java.text.Format
     ↳ java.text.DateFormat
       ↳ org.apache.log4j.helpers.AbsoluteTimeDateFormat
         ↳ org.apache.log4j.helpers.ISO8601DateFormat

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class org.apache.log4j.helpers.AbsoluteTimeDateFormat
From class java.text.DateFormat
[Expand]
Inherited Fields
From class java.text.DateFormat
Public Constructors
ISO8601DateFormat()
ISO8601DateFormat(TimeZone timeZone)
Public Methods
StringBuffer format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends a date in the format "YYYY-mm-dd HH:mm:ss,SSS" to sbuf.
Date parse(String s, ParsePosition pos)
This method does not do anything but return null.
[Expand]
Inherited Methods
From class org.apache.log4j.helpers.AbsoluteTimeDateFormat
From class java.text.DateFormat
From class java.text.Format
From class java.lang.Object

Public Constructors

public ISO8601DateFormat ()

public ISO8601DateFormat (TimeZone timeZone)

Public Methods

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
date the date to format
sbuf the StringBuffer to write to
fieldPosition remains untouched

public Date parse (String s, ParsePosition pos)

This method does not do anything but return null.