Class AbsoluteTimeDateFormat

java.lang.Object
java.text.Format
java.text.DateFormat
org.apache.log4j.helpers.AbsoluteTimeDateFormat
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
DateTimeDateFormat, ISO8601DateFormat

public class AbsoluteTimeDateFormat extends DateFormat
Formats a Date in the format "HH:mm:ss,SSS" for example, "15:49:37,459".
Since:
0.7.5
Author:
Ceki Gülcü, Andrew Vajoczki
See Also:
  • Field Details

  • Constructor Details

    • AbsoluteTimeDateFormat

      public AbsoluteTimeDateFormat()
    • AbsoluteTimeDateFormat

      public AbsoluteTimeDateFormat(TimeZone timeZone)
  • Method Details

    • format

      public StringBuffer format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
      Appends to sbuf the time in the format "HH:mm:ss,SSS" for example, "15:49:37,459"
      Specified by:
      format in class DateFormat
      Parameters:
      date - the date to format
      sbuf - the string buffer to write to
      fieldPosition - remains untouched
    • parse

      public Date parse(String s, ParsePosition pos)
      This method does not do anything but return null.
      Specified by:
      parse in class DateFormat