Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » helpers » [javadoc | source]
org.apache.log4j.helpers
public class: RelativeTimeDateFormat [javadoc | source]
java.lang.Object
   java.text.Format
      java.text.DateFormat
         org.apache.log4j.helpers.RelativeTimeDateFormat

All Implemented Interfaces:
    Serializable, Cloneable

Formats a Date by printing the number of milliseconds elapsed since construction of the format. This is the fastest printing DateFormat in the package.
Field Summary
protected final  long startTime     
Fields inherited from java.text.DateFormat:
ERA_FIELD,  YEAR_FIELD,  MONTH_FIELD,  DATE_FIELD,  HOUR_OF_DAY1_FIELD,  HOUR_OF_DAY0_FIELD,  MINUTE_FIELD,  SECOND_FIELD,  MILLISECOND_FIELD,  DAY_OF_WEEK_FIELD,  DAY_OF_YEAR_FIELD,  DAY_OF_WEEK_IN_MONTH_FIELD,  WEEK_OF_YEAR_FIELD,  WEEK_OF_MONTH_FIELD,  AM_PM_FIELD,  HOUR1_FIELD,  HOUR0_FIELD,  TIMEZONE_FIELD,  FULL,  LONG,  MEDIUM,  SHORT,  DEFAULT
Constructor:
 public RelativeTimeDateFormat() 
Method from org.apache.log4j.helpers.RelativeTimeDateFormat Summary:
format,   parse
Methods from java.text.DateFormat:
clone,   equals,   format,   format,   format,   getAvailableLocales,   getCalendar,   getDateInstance,   getDateInstance,   getDateInstance,   getDateTimeInstance,   getDateTimeInstance,   getDateTimeInstance,   getInstance,   getNumberFormat,   getTimeInstance,   getTimeInstance,   getTimeInstance,   getTimeZone,   hashCode,   isLenient,   parse,   parse,   parseObject,   setCalendar,   setLenient,   setNumberFormat,   setTimeZone
Methods from java.text.Format:
clone,   format,   format,   formatToCharacterIterator,   parseObject,   parseObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.helpers.RelativeTimeDateFormat Detail:
 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.