public class

AbsoluteTimeDateFormat

extends DateFormat
java.lang.Object
   ↳ java.text.Format
     ↳ java.text.DateFormat
       ↳ org.apache.log4j.helpers.AbsoluteTimeDateFormat
Known Direct Subclasses

Class Overview

Formats a Date in the format "HH:mm:ss,SSS" for example, "15:49:37,459".

Summary

Constants
String ABS_TIME_DATE_FORMAT String constant used to specify AbsoluteTimeDateFormat in layouts.
String DATE_AND_TIME_DATE_FORMAT String constant used to specify DateTimeDateFormat in layouts.
String ISO8601_DATE_FORMAT String constant used to specify ISO8601DateFormat in layouts.
[Expand]
Inherited Constants
From class java.text.DateFormat
[Expand]
Inherited Fields
From class java.text.DateFormat
Public Constructors
AbsoluteTimeDateFormat()
AbsoluteTimeDateFormat(TimeZone timeZone)
Public Methods
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"
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

Constants

public static final String ABS_TIME_DATE_FORMAT

String constant used to specify AbsoluteTimeDateFormat in layouts. Current value is ABSOLUTE.

Constant Value: "ABSOLUTE"

public static final String DATE_AND_TIME_DATE_FORMAT

String constant used to specify DateTimeDateFormat in layouts. Current value is DATE.

Constant Value: "DATE"

public static final String ISO8601_DATE_FORMAT

String constant used to specify ISO8601DateFormat in layouts. Current value is ISO8601.

Constant Value: "ISO8601"

Public Constructors

public AbsoluteTimeDateFormat ()

public AbsoluteTimeDateFormat (TimeZone timeZone)

Public Methods

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"

Parameters
date the date to format
sbuf the string buffer to write to
fieldPosition remains untouched

public Date parse (String s, ParsePosition pos)

This method does not do anything but return null.