org.apache.log4j.helpers

Class RelativeTimeDateFormat

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ü

Field Summary
protected longstartTime
Constructor Summary
RelativeTimeDateFormat()
Method Summary
StringBufferformat(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends to sbuf the number of milliseconds elapsed since the start of the application.
Dateparse(String s, ParsePosition pos)
This method does not do anything but return null.

Field Detail

startTime

protected final long startTime

Constructor Detail

RelativeTimeDateFormat

public RelativeTimeDateFormat()

Method Detail

format

public StringBuffer format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends to sbuf the number of milliseconds elapsed since the start of the application.

Since: 0.7.5

parse

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