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
Duration
A new Duration with the same number of ticks as the given TimeSpan.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.1.0.0 (1.1.1)