Cuemon .NET Framework
Floor(DateTime,Double,TimeUnit) Method

A System.DateTime value to be rounded.
The System.Double value that in combination with timeUnit specifies the rounding of value.
One of the enumeration values that specifies the time unit of interval.
Returns a System.DateTime value that is rounded towards negative infinity.
Syntax
'Declaration
 
Public Overloads Shared Function Floor( _
   ByVal value As Date, _
   ByVal interval As Double, _
   ByVal timeUnit As TimeUnit _
) As Date

Parameters

value
A System.DateTime value to be rounded.
interval
The System.Double value that in combination with timeUnit specifies the rounding of value.
timeUnit
One of the enumeration values that specifies the time unit of interval.

Return Value

A System.DateTime value that is rounded towards negative infinity.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptioninterval is 0.
Requirements

Target Platforms: Windows 8, 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

Reference

DateTimeUtility Class
DateTimeUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback