org.apache.log4j.helpers
Class RelativeTimeDateFormat
DateFormatorg.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.
- Ceki Gülcü
- 0.7.5
StringBuffer | format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)- Appends to
sbuf the number of milliseconds elapsed
since the start of the application.
|
Date | parse(java.lang.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.
- 0.7.5
parse
public Date parse(java.lang.String s,
ParsePosition pos)This method does not do anything but return null.
Copyright 2000-2002 Apache Software Foundation.