Click or drag to resize

AccurateUtcTimeSource Class

Current UTC time retrieved directly from DateTime.UtcNow.
Inheritance Hierarchy
SystemObject
  NLog.TimeTimeSource
    NLog.TimeAccurateUtcTimeSource

Namespace:  NLog.Time
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public sealed class AccurateUtcTimeSource : TimeSource

The AccurateUtcTimeSource type exposes the following members.

Constructors
  NameDescription
Public methodAccurateUtcTimeSource
Initializes a new instance of the AccurateUtcTimeSource class
Top
Properties
  NameDescription
Public propertyTime
Gets current UTC time directly from DateTime.UtcNow.
(Overrides TimeSourceTime.)
Top
Methods
  NameDescription
Public methodFromSystemTime
Converts the specified system time to the same form as the time value originated from this time source.
(Overrides TimeSourceFromSystemTime(DateTime).)
Public methodToString
Returns a String that represents this instance.
(Inherited from TimeSource.)
Top
Remarks
See Also