Log4j Version 1.2.14: Class RelativeTimeDateFormat

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.helpers Class RelativeTimeDateFormat

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

public class RelativeTimeDateFormat
extends DateFormat

Formats a Date by printing the number of milliseconds elapsed since construction of the format. This is the fastest printing DateFormat in the package.

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

protected  long
 
 
 
 StringBuffer
 Date
 
 
 
 

startTime

protected final long startTime

RelativeTimeDateFormat

public RelativeTimeDateFormat()

format

public StringBuffer format(Date date,
                           StringBuffer sbuf,
                           FieldPosition fieldPosition)
Appends to sbuf the number of milliseconds elapsed since the start of the application.
Overrides:
format in class DateFormat
Since:
0.7.5

parse

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

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.