Version

Floor(DateTime,TimeSpan) Method

Returns the date and time of the beginning of the cycle which contains the specified dateTime.
Syntax
'Declaration
 
Protected Overrides Function Floor( _
   ByVal dateTime As Date, _
   ByRef duration As TimeSpan _
) As Date
protected override DateTime Floor( 
   DateTime dateTime,
   out TimeSpan duration
)

Parameters

dateTime
The date/time to use to calculate the beginning of the cycle.
duration
[out] Upon return, contains the duration of the cycle which contains the specified dateTime.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also