Noda Time
FromTimeSpan Method (timeSpan)
NamespacesNodaTimeDurationFromTimeSpan(TimeSpan)
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) Version: 1.0.0.0 (1.0.1)