ManagementDateTimeConverter Class

 

Provides methods to convert DMTF datetime and time intervals to CLR-compliant DateTime and TimeSpan format and vice versa.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

System.Object
  System.Management.ManagementDateTimeConverter

public sealed class ManagementDateTimeConverter

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(String)

Converts a given DMTF datetime to DateTime. The returned DateTime will be in the current time zone of the system.

System_CAPS_pubmethodSystem_CAPS_staticToDmtfDateTime(DateTime)

Converts a given DateTime to DMTF datetime format.

System_CAPS_pubmethodSystem_CAPS_staticToDmtfTimeInterval(TimeSpan)

Converts a given TimeSpan to DMTF time interval.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticToTimeSpan(String)

Converts a given DMTF time interval to a TimeSpan.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: