Click or drag to resize
DurationToTimeSpan Method
Returns a TimeSpan instance that represents the same interval than this instance.

You should take into consideration that TimeSpan is internally represented in ticks, so for the conversion, 24h days will be used (leap seconds are not considered). For Duration values with month portion, it will throw an InvalidOperationException.

Namespace: Dse
Assembly: Dse (in Dse.dll) Version: 2.4.0
Syntax
C#
public TimeSpan ToTimeSpan()

Return Value

Type: TimeSpan
Exceptions
ExceptionCondition
InvalidOperationExceptionvalues including month portion.
See Also