다음을 통해 공유


DateTimeExtensions.Round Method (DateTimeOffset, RoundTo)

 

Applies To: Dynamics CRM 2013

Rounds a value to the nearest discrete value.

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static DateTimeOffset Round(
    this DateTimeOffset d,
    RoundTo to
)
public:
[ExtensionAttribute]
static DateTimeOffset Round(
    DateTimeOffset d,
    RoundTo to
)
static member Round : 
        d:DateTimeOffset *
        to:RoundTo -> DateTimeOffset
<ExtensionAttribute>
Public Shared Function Round (
    d As DateTimeOffset,
    to As RoundTo
) As DateTimeOffset

Parameters

Return Value

Type: System.DateTimeOffset

Type: DateTimeOffset
The nearest discrete value.

See Also

Round Overload
DateTimeExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top