In some locales, long and short distances may be expressed using different systems of measurement.
In Britain for example, imperial units are commonly used for long distances and metric units for shorter distances. The TLocale class provides for this possibility by allowing the units of measurement, for long (miles or kilometers) and short (meters/centimeters or feet/inches) distances to be set independently.
For example, when setting the units of measurement in a locale where only metric units are ever used, use SetUnitsGeneral(EUnitsMetric). In the UK, on the other hand, where short distances are often measured using meters and centimetres, and long distances in miles, you may instead use SetUnitsDistanceShort(EUnitsMetric), and SetUnitsDistanceLong(EUnitsImperial).
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.