Class DateTimeDateFormatter
- Namespace
- log4net.DateFormatter
- Assembly
- log4net.dll
Formats a DateTime as "dd MMM yyyy HH:mm:ss,fff"
public class DateTimeDateFormatter : AbsoluteTimeDateFormatter, IDateFormatter
- Inheritance
-
DateTimeDateFormatter
- Implements
- Inherited Members
Remarks
Formats a DateTime in the format
"dd MMM yyyy HH:mm:ss,fff" for example,
"06 Nov 1994 15:49:37,459".
Constructors
DateTimeDateFormatter()
Default constructor.
public DateTimeDateFormatter()
Remarks
Initializes a new instance of the DateTimeDateFormatter class.
Methods
FormatDateWithoutMillis(DateTime, StringBuilder)
Formats the date without the milliseconds part
protected override void FormatDateWithoutMillis(DateTime dateToFormat, StringBuilder buffer)
Parameters
dateToFormatDateTimeThe date to format.
bufferStringBuilderThe string builder to write to.
Remarks
Formats a DateTime in the format "dd MMM yyyy HH:mm:ss"
for example, "06 Nov 1994 15:49:37".
The base class will append the ",fff" milliseconds section.
This method will only be called at most once per second.