Click or drag to resize

OffsetDateTimeProvider Constructor

Initializes a new instance of the OffsetDateTimeProvider class using a specified offset to the current date and time.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public OffsetDateTimeProvider(
	TimeSpan offset
)

Parameters

offset
Type: SystemTimeSpan
A negative of positive offset that will be added to the DateTime values that are retrieved through the properties and methods of this class.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe sum of the current date and time and offset results in a value that is less than MinValue or greater than MaxValue.
See Also