[This is preliminary documentation and is subject to change.]
Tuncate date to specific resolution
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static DateTime Truncate(
this DateTime now,
long tickResolution
)
public static DateTime Truncate(
this DateTime now,
long tickResolution
)
<ExtensionAttribute>
Public Shared Function Truncate (
now As DateTime,
tickResolution As Long
) As DateTime
<ExtensionAttribute>
Public Shared Function Truncate (
now As DateTime,
tickResolution As Long
) As DateTime
public:
[ExtensionAttribute]
static DateTime Truncate(
DateTime now,
long long tickResolution
)
public:
[ExtensionAttribute]
static DateTime Truncate(
DateTime now,
long long tickResolution
)
static member Truncate :
now : DateTime *
tickResolution : int64 -> DateTime
static member Truncate :
now : DateTime *
tickResolution : int64 -> DateTime
Return Value
Type:
DateTimeUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).