RandomExtended..::..NextDateTimeOffset Method (DateTimeOffset, DateTimeOffset)

Returns a random date/time that is within the indicated range.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public DateTimeOffset NextDateTimeOffset(
	DateTimeOffset minValue,
	DateTimeOffset maxValue
)
Public Function NextDateTimeOffset ( _
	minValue As DateTimeOffset, _
	maxValue As DateTimeOffset _
) As DateTimeOffset

Parameters

minValue
Type: DateTimeOffset
The inclusive minimum value.
maxValue
Type: DateTimeOffset
The exclusive maximum value.

Return Value

Exceptions


ExceptionCondition
[ArgumentOutOfRangeException]maxValue;maxValue must be greater than or equal to minValue.