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: 24.3.420.0 (24.3.420.0)
Syntax
public static int GetConversionDistance(
	TimeStandard from,
	TimeStandard to
)

Parameters

from
Type: AGI.Foundation.TimeTimeStandard
The source time standard.
to
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