Log4j Version 1.2.14: Class ISO8601DateFormat

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.helpers Class ISO8601DateFormat

java.lang.Object
  |
  +--java.text.Format
        |
        +--java.text.DateFormat
              |
              +--org.apache.log4j.helpers.AbsoluteTimeDateFormat
                    |
                    +--org.apache.log4j.helpers.ISO8601DateFormat
All Implemented Interfaces:
Cloneable, Serializable

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
See Also:
Serialized Form

 
 
 
 StringBuffer
 Date
 
 
 
 

ISO8601DateFormat

public ISO8601DateFormat()

ISO8601DateFormat

public ISO8601DateFormat(TimeZone timeZone)

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".
Overrides:
format in class AbsoluteTimeDateFormat
Parameters:
sbuf - the StringBuffer to write to

parse

public Date parse(String s,
                  ParsePosition pos)
This method does not do anything but return null.
Overrides:
parse in class AbsoluteTimeDateFormat

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.