Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTime Methods

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFTime Methods

The AFTime type exposes the following members.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(AFTime)
Compares this instance with a specified AFTime.
Public methodStatic member
ConvertString
Converts an AFTime or AFTimeSpan input string to a different culture-specific normalized string.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).)
Public method
Equals(AFTime)
Indicates whether the current object is equal to another object of the same type.
Public method
Equals(AFTime, Double)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic member
GetAbbreviatedName
Gets the culture-specific abbreviated time name of the specified invariant time name based on the specified format provider.
Public method
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.)
Public methodStatic member
GetName
Gets the culture-specific full time name of the specified invariant time name based on the specified format provider.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic member
Parse(String, IFormatProvider)
Converts the specified string representation of a local date and time to its AFTime equivalent by using the specified culture-specific formatting information.
Public methodStatic member
Parse(String, AFTime, IFormatProvider)
Converts the specified string representation of a local date and time to its AFTime equivalent by using the specified reference time and culture-specific formatting information.
Public method
ToPIPrecision
Rounds the AFTime object to the precision supported by the PIServer.
Public method
ToString
Returns a String that represents the current object.
(Overrides ValueTypeToString.)
Public method
ToString(IFormatProvider)
Returns a String that represents the current object.
Public method
ToString(String, IFormatProvider)
Returns a String that represents the current object.
Public method
TruncateToWholeSeconds
Truncates the fractional seconds from the AFTime object.
Public methodStatic memberCode example
TryParse(String, AFTime)
Converts the specified string representation of a local date and time to its AFTime equivalent by using the CurrentCulture and returns a value that indicates whether the conversion succeeded.
Public methodStatic memberCode example
TryParse(String, AFTime, AFTime)
Converts the specified string representation of a local date and time to its AFTime equivalent by using the specified reference time and returns a value that indicates whether the conversion succeeded.
Public methodStatic memberCode example
TryParse(String, IFormatProvider, AFTime)
Converts the specified string representation of a local date and time to its AFTime equivalent by using the specified culture-specific formatting information and returns a value that indicates whether the conversion succeeded.
Public methodStatic memberCode example
TryParse(String, AFTime, IFormatProvider, AFTime)
Converts the specified string representation of a local date and time to its AFTime equivalent by using the specified reference time and culture-specific formatting information, and returns a value that indicates whether the conversion succeeded.

See Also

TitleResults for “How to create a CRG?”Also Available in