Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / DateTimeProperty Class
Members Example
In This Topic
    DateTimeProperty Class
    In This Topic
    Property which stores a System.DateTime value.
    Object Model
    DateTimeProperty ClassPropertyValue Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.ApiProperties.Property
          EPLAN.Harness.API.ApiProperties.DateTimeProperty

    Syntax
    public class DateTimeProperty : Property 
    Remarks

    Represents a property with a date and time value.

    Example
    The following example shows how to use the class DateTimeProperty .
    DateTimeProperty date = new DateTimeProperty(new DateTime(1992, 4, 1, 20, 45, 0));
    
    Console.WriteLine(date);
    Console.WriteLine(date.ToString());
    Console.WriteLine((DateTime)date.Value);
    Console.WriteLine(date.Value.ToString());
    
    // Result:
    // 1. 4. 1992 20:45:00
    // 1. 4. 1992 20:45:00
    // 1. 4. 1992 20:45:00
    // 1. 4. 1992 20:45:00
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property Specifies whether the property is interval. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Public Property Unit of the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Public Property Gets the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Top
    Public Methods
     NameDescription
    Public MethodIs this property equal to the following object?  
    Public MethodServes as the default hash function.  
    Public MethodReturns a string that represents the current object. (Inherited from EPLAN.Harness.API.ApiProperties.Property)
    Top
    Public Operators
    Are these properties equal?
    Overloaded. Implicit conversion from System.DateTime to DateTimeProperty.
    Are these properties not equal?
    Top
    See Also