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
)
Public Shared Function GetConversionDistance (
from As TimeStandard,
to As TimeStandard
) As Integer
public:
static int GetConversionDistance(
TimeStandard^ from,
TimeStandard^ to
)
static member GetConversionDistance :
from : TimeStandard *
to : TimeStandard -> int
Parameters
- from
- Type: AGI.Foundation.TimeTimeStandard
The source time standard. - to
- Type: AGI.Foundation.TimeTimeStandard
The destination time standard.
Return Value
Type:
Int32The number of conversion functions that must be invoked to convert between the formats.
See Also