Log4j Version 1.2.14: Class DateTimeDateFormat

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.helpers Class DateTimeDateFormat

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

public class DateTimeDateFormat
extends AbsoluteTimeDateFormat

Formats a Date in the format "dd MMM yyyy HH:mm:ss,SSS" for example, "06 Nov 1994 15:49:37,459".

Since:
0.7.5
Author:
Ceki Gülcü
See Also:
Serialized Form

 
 
 
 StringBuffer
 Date
 
 
 
 

DateTimeDateFormat

public DateTimeDateFormat()

DateTimeDateFormat

public DateTimeDateFormat(TimeZone timeZone)

format

public StringBuffer format(Date date,
                           StringBuffer sbuf,
                           FieldPosition fieldPosition)
Appends to sbuf the date in the format "dd MMM yyyy HH:mm:ss,SSS" for example, "06 Nov 1994 08:49:37,459".
Overrides:
format in class AbsoluteTimeDateFormat
Parameters:
sbuf - the string buffer 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.