다음을 통해 공유


JsonUtility.JsTicksToDateTicks Method

Converts an Int64 that corresponds to the value returned by a call to getTicks on a ECMAScript (JScript, JavaScript) Date to a value that, when used to construct a DateTime, will result in that object representing the same date and time as the ECMAScript Date.

Namespace:  Microsoft.SharePoint.JsonUtilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function JsTicksToDateTicks ( _
    jsTicks As Long _
) As Long
'Usage
Dim jsTicks As Long
Dim returnValue As Long

returnValue = JsonUtility.JsTicksToDateTicks(jsTicks)
public static long JsTicksToDateTicks(
    long jsTicks
)

Parameters

  • jsTicks
    Type: System.Int64

    The number of milliseconds in Coordinated Universal Time (UTC) since epoch, where epoch is defined as midnight January 1, 1970.

Return Value

Type: System.Int64
A Int64 indicating the number of ticks in C#.

See Also

Reference

JsonUtility Class

JsonUtility Members

Microsoft.SharePoint.JsonUtilities Namespace