org.apache.log4j.helpers
Class RelativeTimeDateFormat
DateFormat
org.apache.log4j.helpers.RelativeTimeDateFormat
public class RelativeTimeDateFormat
extends DateFormat
Formats a Date
by printing the number of milliseconds
elapsed since the start of the application. This is the fastest
printing DateFormat in the package.
StringBuffer | format(Date date, StringBuffer sbuf, FieldPosition fieldPosition) - Appends to
sbuf the number of milliseconds elapsed
since the start of the application.
|
Date | parse(String s, ParsePosition pos) - This method does not do anything but return
null .
|
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.
parse
public Date parse(String s,
ParsePosition pos)
This method does not do anything but return null
.
Copyright 2000-2005 Apache Software Foundation.