public abstract DateTime FromSystemTime( DateTime systemTime )
Public MustOverride Function FromSystemTime ( systemTime As DateTime ) As DateTime
There are situations when NLog have to compare the time originated from TimeSource to the time originated externally in the system. To be able to provide meaningful result of such comparisons the system time must be expressed in the same form as TimeSource time.
Examples: - If the TimeSource provides time values of local time, it should also convert the provided systemTime to the local time. - If the TimeSource shifts or skews its time values, it should also apply the same transform to the given systemTime.