
System.Object
EPLAN.Harness.API.ApiProperties.Property
EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
EPLAN.Harness.API.ApiProperties.TimeProperty
public class TimeProperty : EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty
Represents a property with a time value.
Class provides a method to convert values between units.
TimeProperty time = new TimeProperty(18, Unit.Hour); Console.WriteLine(time); time.Convert(Unit.Week); Console.WriteLine(time.ToString()); time = "800 ms"; Console.WriteLine(time); Console.WriteLine($"Value: {(double)time.Value}, Unit: {time.Unit}"); // Results: // 18 h // 0,1071 w // 800 ms // Value: 800, Unit: Millisecond
Name | Description | |
---|---|---|
![]() | TimeProperty Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | IsInterval | Specifies whether the property is interval. (Inherited from EPLAN.Harness.API.ApiProperties.Property) |
![]() | Unit | Unit of the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property) |
![]() | Value | Gets the value of this property. (Inherited from EPLAN.Harness.API.ApiProperties.Property) |
Name | Description | |
---|---|---|
![]() | Convert | Convert a property to the specified unit. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
![]() | Equals | Is this unit class property equal to the following object? (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
![]() | ToString | Overloaded. Returns a string that represents the current object. (Inherited from EPLAN.Harness.API.ApiProperties.UnitProperties.UnitClassProperty) |
![]() | Sums two properties. |
![]() | Implicit conversion from System.String to TimeProperty. |
![]() | Subtracts two properties. |