[This topic is pre-release documentation and
is subject to change in future releases. Blank topics are included
as placeholders.]
Assembly: Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)
Methods to assist with working with times.
Configuration Manager uses several different types of time
internally and this encapsulates many of them.
Supported time formats include
ISO 8601,
CIM time (called SMS time in the some of the
methods and properties in this class),
COM FILETIME,
Win32
SystemTime, "SMS Cookie" time, and
CTime/time_t/UNIX time.
Conversion from and too these formats is supported in most
cases.
Namespace:
Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
C# | Visual Basic | Visual C++ |
[ SerializableAttribute] public static class TimeHelpers
< SerializableAttribute> _ < ExtensionAttribute> _ Public NotInheritable Class TimeHelpers
[ SerializableAttribute] [ ExtensionAttribute] public ref class TimeHelpers abstract sealed
Members
All Members |
Fields
![]() |
Properties
![]() |
Methods
![]() |
![]() ![]() |
![]() ![]() ![]() |
![]() ![]() |
![]() ![]() ![]() ![]() |
|
Member | Description | |
---|---|---|
![]() ![]() |
CurrentDateTimeAsSmsTime |
Generates a
DateTimeas an CIM-formatted string
|
![]() ![]() |
CurrentTimeAsIso8601 |
Gets the current time in ISO 8601 format
|
![]() ![]() |
CurrentTimeAsUnixTime |
Gets the current time as a CTime
|
![]() ![]() |
Epoch |
UNIX/CTime epoch
DateTime
|
![]() ![]() |
ParseCTime(Int64) |
Converts a CTime to a
DateTime
|
![]() ![]() |
ParseIso8601Time(String) |
Converts the string date format to
DateTime
|
![]() ![]() |
ParseIso8601Time(String, Boolean) |
Converts the string date format to
DateTime
|
![]() ![]() |
ParseSmsCookieTime(String) |
Converts a cookie time format to a
DateTimeobject
|
![]() ![]() |
ParseSmsTime(String) |
Converts a string CIM_DATETIME time to
DateTime
|
![]() ![]() |
ToComFileTime(DateTime) |
Converts a
DateTimeas local time to a COM
FILETIME. If UTC conversion is desired, use
ToComFileTime(DateTime, Boolean)
|
![]() ![]() |
ToComFileTime(DateTime, Boolean) | |
![]() ![]() |
ToCTime(DateTime) |
Converts a
DateTimeto a UNIX/CTime
|
![]() ![]() |
ToCTime(Nullable < (Of < <' ( DateTime > ) > > ) ) |
Converts a
DateTimeto a UNIX/CTime
|
![]() ![]() |
ToCTime(DateTime, Boolean) |
Converts a
DateTimeto a UNIX/CTime
|
![]() ![]() |
ToCTime(Nullable < (Of < <' ( DateTime > ) > > ) , Boolean) |
Converts a
DateTimeto a UNIX/CTime
|
![]() ![]() |
ToDateTime(FILETIME) |
Converts a
FILETIMErepresented as local time to a managed
DateTime. If UTC conversion is desired, use
ToDateTime(FILETIME, Boolean).
|
![]() ![]() |
ToDateTime(FILETIME, Boolean) | |
![]() ![]() |
ToIso8601Time(DateTime) |
Converts an existing
DateTimeto ISO 8601 format
|
![]() ![]() |
ToSmsCookieTime(DateTime) |
Converts an existing time to the SMS cookie
time format 2007-01-01 11:11:11.000
|
![]() ![]() |
ToSmsTime(DateTime) |
Converts a
DateTimeobject to an SMS-formatted string
|
![]() ![]() |
ToSmsTime(DateTime, SmsTimeZone) |
Converts a
DateTimeobject to an CIM formatted string
|
![]() ![]() |
ToSmsTime(DateTime, Boolean) |
Converts a
DateTimeobject to an CIM-formatted string
|
![]() ![]() |
ToSmsTime(DateTime, Int32) |
Converts a
DateTimeobject to an CIM-formatted string.
Override with a specific offset.
|
![]() ![]() |
ToSmsTime(DateTime, SmsTimeZone, Boolean, Int32) |
Formats the CIM time to a string
'20070402184502.000000-420'
|
![]() ![]() |
ToSystemTime(DateTime) |
Converts a DateTime to a
SystemTimerepresentation
|
Inheritance Hierarchy
System
.
.
::
.
.
Object
Microsoft.ConfigurationManagement.Messaging.Framework . . :: . . TimeHelpers
Microsoft.ConfigurationManagement.Messaging.Framework . . :: . . TimeHelpers