편집

다음을 통해 공유


ManagementDateTimeConverter Class

Definition

Provides methods to convert Desktop Management Task Force (DMTF) date-time 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
Inheritance
ManagementDateTimeConverter

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToDateTime(String)

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

ToDmtfDateTime(DateTime)

Converts a given DateTime to DMTF datetime format.

ToDmtfTimeInterval(TimeSpan)

Converts a given TimeSpan to DMTF time interval.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToTimeSpan(String)

Converts a given DMTF time interval to a TimeSpan.

Applies to