RawUtcTimeStampLayout Format Method | Apache log4net™ SDK Documentation

Gets the TimeStamp as a DateTime.

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

C#
VB
C++
F#
Copy

    public virtual Object Format(
    	LoggingEvent loggingEvent
    )

    Public Overridable Function Format (
    	loggingEvent As LoggingEvent
    ) As Object

    public:
    virtual Object^ Format(
    	LoggingEvent^ loggingEvent
    )

    abstract Format :
            loggingEvent : LoggingEvent -> Object
    override Format :
            loggingEvent : LoggingEvent -> Object

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  The event to format

#### Return Value

Type: Object
returns the time stamp

#### Implements

IRawLayout
Format(LoggingEvent)
Remarks

Gets the TimeStamp as a DateTime.

The time stamp is in universal time. To format the time stamp in local time use RawTimeStampLayout.

See Also

#### Reference

RawUtcTimeStampLayout Class
log4net.Layout Namespace