[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Converts a DateTimeobject to an CIM-formatted string. Override with a specific offset.

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

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
static 
string 
ToSmsTime(
	
this 
DateTime 
time,
	
int 
offset
)
<
ExtensionAttribute> _
Public 
Shared 
Function 
ToSmsTime ( _
	
time 
As 
DateTime, _
	
offset 
As 
Integer _
) 
As 
String
[
ExtensionAttribute]
public:
static 
String^ 
ToSmsTime(
	
DateTime 
time, 
	
int 
offset
)

Parameters

time
DateTime
Time to convert to SmsTime
offset
Int32
Offset in minutes to adjust for time zone

See Also