AFTimeSpan Methods
- Last UpdatedNov 18, 2025
- 4 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFTimeSpan type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Add |
Add the time span to the specified time.
| |
| CompareTo(Object) |
Compares this instance with a specified Object.
| |
| CompareTo(AFTimeSpan) |
Compares this instance with a specified AFTimeSpan.
| |
| Duration |
Returns a new AFTimeSpan object whose value is the absolute value
of the current AFTimeSpan object.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).) | |
| Equals(AFTimeSpan) |
Indicates whether the current object is equal to another object of the same type.
| |
| GetEvenTimeIntervalDefinitions |
Get the list of evenly spaced interval definitions that are within the specified
AFTimeRange.
| |
| GetHashCode |
Gets the hash code for this instance of the object which is suitable for use in hashing
algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.) | |
| GetIntervalTimes |
Get the list of interval times for the specified AFTimeRange.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Multiply |
Multiply the time span by the specified factor from the specified time.
| |
| Negate |
Returns a AFTimeSpan whose value is the negated value of this instance.
| |
| Parse(String, IFormatProvider) |
Converts the string representation of a time interval to its AFTimeSpan equivalent.
| |
| Parse(String, AFTimeZone, IFormatProvider) |
Converts the string representation of a time interval to its AFTimeSpan equivalent
with a specified AFTimeZone.
| |
| ToString |
Returns a String that represents the current object.
(Overrides ValueTypeToString.) | |
| ToString(IFormatProvider) |
Returns a String that represents the current object.
| |
| ToString(IFormatProvider, Boolean) |
Returns a String that represents the current object.
| |
| ToTimeSpan |
Returns the time span as a standard TimeSpan object.
| |
| TryParse(String, AFTimeSpan) |
Converts the string representation of a time interval to its AFTimeSpan equivalent
by using the CurrentCulture and returns a value that indicates
whether the conversion succeeded.
| |
| TryParse(String, IFormatProvider, AFTimeSpan) |
Converts the string representation of a time interval to its AFTimeSpan equivalent
by using the specified culture-specific formatting information and returns a value that indicates
whether the conversion succeeded.
| |
| TryParse(String, IFormatProvider, AFTimeZone, AFTimeSpan) |
Converts the string representation of a time interval to its AFTimeSpan equivalent
with a specified AFTimeZone by using the specified culture-specific formatting
information and returns a value that indicates whether the conversion succeeded.
|