public class

RelativeTimeDateFormat

extends DateFormat
java.lang.Object
   ↳ java.text.Format
     ↳ java.text.DateFormat
       ↳ org.apache.log4j.helpers.RelativeTimeDateFormat

Class Overview

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

Summary

[Expand]
Inherited Constants
From class java.text.DateFormat
Fields
protected final long startTime
[Expand]
Inherited Fields
From class java.text.DateFormat
Public Constructors
RelativeTimeDateFormat()
Public Methods
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.
[Expand]
Inherited Methods
From class java.text.DateFormat
From class java.text.Format
From class java.lang.Object

Fields

protected final long startTime

Public Constructors

public RelativeTimeDateFormat ()

Public Methods

public StringBuffer format (Date date, StringBuffer sbuf, FieldPosition fieldPosition)

Appends to sbuf the number of milliseconds elapsed since the start of the application.

public Date parse (String s, ParsePosition pos)

This method does not do anything but return null.