log4net SDK Reference

RawUtcTimeStampLayout.Format Method 

Gets the TimeStamp as a DateTime.

[Visual Basic]
Overridable Public Function Format( _
   ByVal loggingEvent As LoggingEvent _
) As Object _
    Implements IRawLayout.Format
[C#]
public virtual object Format(
   LoggingEvent loggingEvent
);

Parameters

loggingEvent
The event to format

Return Value

returns the time stamp

Implements

IRawLayout.Format

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

RawUtcTimeStampLayout Class | log4net.Layout Namespace