ManagementDateTimeConverter ManagementDateTimeConverter ManagementDateTimeConverter ManagementDateTimeConverter Class


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

public ref class ManagementDateTimeConverter sealed
public sealed class ManagementDateTimeConverter
type ManagementDateTimeConverter = class
Public NotInheritable Class ManagementDateTimeConverter


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToDateTime(String) ToDateTime(String) ToDateTime(String) ToDateTime(String)

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

ToDmtfDateTime(DateTime) ToDmtfDateTime(DateTime) ToDmtfDateTime(DateTime) ToDmtfDateTime(DateTime)

Converts a given DateTime to DMTF datetime format.

ToDmtfTimeInterval(TimeSpan) ToDmtfTimeInterval(TimeSpan) ToDmtfTimeInterval(TimeSpan) ToDmtfTimeInterval(TimeSpan)

Converts a given TimeSpan to DMTF time interval.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToTimeSpan(String) ToTimeSpan(String) ToTimeSpan(String) ToTimeSpan(String)

Converts a given DMTF time interval to a TimeSpan.

Applies to