Click or drag to resize

TimeStandardConverterGetConversionDistance Method

Gets the number of intermediate conversions that must be done to convert from from to to. For example, if a conversion function is defined to directly convert between the time standards, 1 will be returned. If the two standards are identical, 0 will be returned. If no conversion exists at all, MaxValue will be returned.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 19.2.399.0 (19.2.399.0)
public static int GetConversionDistance(
	TimeStandard from,
	TimeStandard to


Type: AGI.Foundation.TimeTimeStandard
The source time standard.
Type: AGI.Foundation.TimeTimeStandard
The destination time standard.

Return Value

Type: Int32
The number of conversion functions that must be invoked to convert between the formats.
See Also