Noda Time
Between Method (start, end)
NamespacesNodaTimePeriodBetween(LocalDateTime, LocalDateTime)

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

Returns the exact difference between two date/times.
Declaration Syntax
C#Visual BasicVisual C++
public static Period Between(
	LocalDateTime start,
	LocalDateTime end
)
Public Shared Function Between ( _
	start As LocalDateTime, _
	end As LocalDateTime _
) As Period
public:
static Period^ Between(
	LocalDateTime start, 
	LocalDateTime end
)
Parameters
start (LocalDateTime)
Start date/time
end (LocalDateTime)
End date/time
Return Value
The period between the two date and time values, using all units.
Remarks
If end is before start, each property in the returned period will be negative.

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