org.apache.log4j.helpers

Class DateTimeDateFormat


public class DateTimeDateFormat
extends AbsoluteTimeDateFormat

Formats a Date in the format "dd MMM YYYY HH:mm:ss,SSS" for example, "06 Nov 1994 15:49:37,459".
Author:
Ceki Gülcü
Since:
0.7.5

Field Summary

Fields inherited from class org.apache.log4j.helpers.AbsoluteTimeDateFormat

ABS_TIME_DATE_FORMAT, DATE_AND_TIME_DATE_FORMAT, ISO8601_DATE_FORMAT

Constructor Summary

DateTimeDateFormat()
DateTimeDateFormat(TimeZone timeZone)

Method Summary

StringBuffer
format(Date date, StringBuffer sbuf, FieldPosition fieldPosition)
Appends to sbuf the date in the format "dd MMM YYYY HH:mm:ss,SSS" for example, "06 Nov 1994 08:49:37,459".
Date
parse(String s, ParsePosition pos)
This method does not do anything but return null.

Methods inherited from class org.apache.log4j.helpers.AbsoluteTimeDateFormat

format, parse

Constructor Details

DateTimeDateFormat

public DateTimeDateFormat()

DateTimeDateFormat

public DateTimeDateFormat(TimeZone timeZone)

Method Details

format

public StringBuffer format(Date date,
                           StringBuffer sbuf,
                           FieldPosition fieldPosition)
Appends to sbuf the date in the format "dd MMM YYYY HH:mm:ss,SSS" for example, "06 Nov 1994 08:49:37,459".
Overrides:
format in interface AbsoluteTimeDateFormat
Parameters:
sbuf - the string buffer to write to

parse

public Date parse(String s,
                  ParsePosition pos)
This method does not do anything but return null.

Copyright 2000-2005 Apache Software Foundation.