Cuemon .NET Framework
Round(DateTime,TimeSpan,VerticalDirection) Method

A System.DateTime value to be rounded.
The System.TimeSpan value that specifies the rounding of value.
One of the enumeration values that specifies the direction of the rounding.
Returns a System.DateTime value that is rounded either towards negative infinity or positive infinity.
Syntax
'Declaration
 
Public Overloads Shared Function Round( _
   ByVal value As Date, _
   ByVal interval As TimeSpan, _
   ByVal direction As VerticalDirection _
) As Date

Parameters

value
A System.DateTime value to be rounded.
interval
The System.TimeSpan value that specifies the rounding of value.
direction
One of the enumeration values that specifies the direction of the rounding.

Return Value

A System.DateTime value that is rounded either towards negative infinity or positive infinity.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptiondirection is an invalid enumeration value.
System.ArgumentOutOfRangeExceptioninterval is System.TimeSpan.Zero.
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