log4net SDK Reference

AbsoluteTimeDateFormatter.FormatDateWithoutMillis Method 

Renders the date into a string. Format is "HH:mm:ss".

[Visual Basic]
Overridable Protected Sub FormatDateWithoutMillis( _
   ByVal dateToFormat As Date, _
   ByVal buffer As StringBuilder _
)
[C#]
protected virtual void FormatDateWithoutMillis(
   DateTime dateToFormat,
   StringBuilder buffer
);

Parameters

dateToFormat
The date to render into a string.
buffer
The string builder to write to.

Remarks

Subclasses should override this method to render the date into a string using a precision up to the second. This method will be called at most once per second and the result will be reused if it is needed again during the same second.

See Also

AbsoluteTimeDateFormatter Class | log4net.DateFormatter Namespace