Class RawUtcTimeStampLayout
Extract the date from the LoggingEvent
public class RawUtcTimeStampLayout : IRawLayout
- Inheritance
-
RawUtcTimeStampLayout
- Implements
- Inherited Members
Remarks
Extract the date from the LoggingEvent
Constructors
RawUtcTimeStampLayout()
Constructs a RawUtcTimeStampLayout
public RawUtcTimeStampLayout()
Methods
Format(LoggingEvent)
public virtual object Format(LoggingEvent loggingEvent)
Parameters
loggingEventLoggingEventThe event to format
Returns
- object
returns the time stamp
Remarks
Gets the TimeStamp as a DateTime.
The time stamp is in universal time. To format the time stamp in local time use RawTimeStampLayout.