AbsoluteTimeDateFormatter FormatDateWithoutMillis Method | Apache log4net™ SDK Documentation

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

Namespace: log4net.DateFormatter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected virtual void FormatDateWithoutMillis(
    	DateTime dateToFormat,
    	StringBuilder buffer
    )

    Protected Overridable Sub FormatDateWithoutMillis (
    	dateToFormat As DateTime,
    	buffer As StringBuilder
    )

    protected:
    virtual void FormatDateWithoutMillis(
    	DateTime dateToFormat,
    	StringBuilder^ buffer
    )

    abstract FormatDateWithoutMillis :
            dateToFormat : DateTime *
            buffer : StringBuilder -> unit
    override FormatDateWithoutMillis :
            dateToFormat : DateTime *
            buffer : StringBuilder -> unit

#### Parameters

dateToFormat
  Type: System
  DateTime
  The date to render into a string.
buffer
  Type: System.Text
  StringBuilder
  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

#### Reference

AbsoluteTimeDateFormatter Class
log4net.DateFormatter Namespace