TimeHelpers.ToCTime Method (Nullable<DateTime>, Boolean)

 

Converts a DateTime object to Unix ctime.

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

Syntax

public static uint ToCTime(
    this Nullable<DateTime> time,
    bool forceUtc
)
public:
[ExtensionAttribute]
static unsigned int ToCTime(
    Nullable<DateTime> time,
    bool forceUtc
)
<ExtensionAttribute>
Public Shared Function ToCTime (
    time As Nullable(Of Date),
    forceUtc As Boolean
) As UInteger

Parameters

  • forceUtc
    Type: System.Boolean

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

Return Value

Type: System.UInt32

See Also

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

Return to top