TimeHelpers.ToCTime Method (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 DateTime time,
bool forceUtc
)
public:
[ExtensionAttribute]
static unsigned int ToCTime(
DateTime time,
bool forceUtc
)
<ExtensionAttribute>
Public Shared Function ToCTime (
time As Date,
forceUtc As Boolean
) As UInteger
Parameters
time
Type: System.DateTimeDate/time as DateTime.
forceUtc
Type: System.BooleanIf 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