Udostępnij za pośrednictwem


Helper.SecondsDoubleToDateTime Method

Converts a double-precision 64-bit floating-point value to an instant in time.

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

Syntax

'Declaration
Public Shared Function SecondsDoubleToDateTime ( _
    context As WorkflowContext, _
    val As Object _
) As DateTime
'Usage
Dim context As WorkflowContext
Dim val As Object
Dim returnValue As DateTime

returnValue = Helper.SecondsDoubleToDateTime(context, _
    val)
public static DateTime SecondsDoubleToDateTime(
    WorkflowContext context,
    Object val
)

Parameters

  • val
    Type: System.Object

    The number of seconds since midnight 1/1/1900.

Return Value

Type: System.DateTime
The instant in time represented by the number of the seconds in val since midnight 1/1/1900.

Remarks

This method throws a CoercionException exception if val is null , not a Double object, or the resulting instant in time is before midnight 1/1/1900.

See Also

Reference

Helper Class

Helper Members

Microsoft.SharePoint.WorkflowActions Namespace