Duration FromTimeSpan Method Noda Time
Returns a Duration that represents the same number of ticks as the given OnlineTimeSpan.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public static Duration FromTimeSpan(
	TimeSpan timeSpan
)

Return Value

Type: Duration
A new Duration with the same number of ticks as the given TimeSpan.
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also