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: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public 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
See Also