Noda Time
FromTimeSpan Method (timeSpan)
NamespacesNodaTimeDurationFromTimeSpan(TimeSpan)

[This is preliminary documentation and is subject to change.]

Returns a Duration that represents the same number of ticks as the given TimeSpan.
Declaration Syntax
C#Visual BasicVisual C++
public static Duration FromTimeSpan(
	TimeSpan timeSpan
)
Public Shared Function FromTimeSpan ( _
	timeSpan As TimeSpan _
) As Duration
public:
static Duration FromTimeSpan(
	TimeSpan timeSpan
)
Parameters
timeSpan (TimeSpan)
The TimeSpan value to convert
Return Value
A new Duration with the same number of ticks as the given TimeSpan.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)