TimeHelpers.ToSmsTime Method (DateTime, SmsTimeZone, Boolean, Int32)

 

Formats CIM time to a string. For example: '20070402184502.000000-420'.

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

Syntax

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

Parameters

  • offset
    Type: System.Int32

    Offset, in minutes, to adjust for time zone.

Return Value

Type: System.String

Returns a formatted date in CIM time. For example: 20070402184502.000000-420.

See Also

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

Return to top