TimeHelpers.ToDateTime Method (FILETIME, Boolean)

 

Converts a FILETIME object to a managed DateTime object.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

public static DateTime ToDateTime(
    this FILETIME fileTime,
    bool utc
)
public:
[ExtensionAttribute]
static DateTime ToDateTime(
    FILETIME fileTime,
    bool utc
)
<ExtensionAttribute>
Public Shared Function ToDateTime (
    fileTime As FILETIME,
    utc As Boolean
) As Date

Parameters

  • utc
    Type: System.Boolean

    If true, returns time as UTC; otherwise, returns local time.

Return Value

Type: System.DateTime

See Also

ToDateTime Overload
TimeHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top