Udostępnij za pośrednictwem


TimeHelpers.ToSmsTime Method (DateTime, Int32)

 

Converts a DateTime object to a CIM-formatted string. Override with a specific offset.

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

Syntax

public static string ToSmsTime(
    this DateTime time,
    int offset
)
public:
[ExtensionAttribute]
static String^ ToSmsTime(
    DateTime time,
    int offset
)
<ExtensionAttribute>
Public Shared Function ToSmsTime (
    time As Date,
    offset As Integer
) As String

Parameters

  • offset
    Type: System.Int32

    Offset, in minutes, to adjust for time zone.

Return Value

Type: System.String

See Also

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

Return to top