Lines Matching refs:UDateTimeScale

99 static void roundTripTest(int64_t value, UDateTimeScale scale)  in roundTripTest()
109 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest()
120 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest()
156 …int64_t units = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_UNITS_VALUE, &status); in TestEpochOffsets()
157 …int64_t epochOffset = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_EPOCH_OFFSET_VALUE, &… in TestEpochOffsets()
159 epochOffsetTest(epochOffset, units, (UDateTimeScale)scale); in TestEpochOffsets()
169 … int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestFromLimits()
170 … int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestFromLimits()
172 roundTripTest(fromMin, (UDateTimeScale)scale); in TestFromLimits()
173 roundTripTest(fromMax, (UDateTimeScale)scale); in TestFromLimits()
183 … int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestToLimits()
184 … int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestToLimits()
185 … int64_t toMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MIN_VALUE, &status); in TestToLimits()
186 … int64_t toMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MAX_VALUE, &status); in TestToLimits()
188 toLimitTest(toMin, fromMin, (UDateTimeScale)scale); in TestToLimits()
189 toLimitTest(toMax, fromMax, (UDateTimeScale)scale); in TestToLimits()
209 fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestFromInt64()
210 fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestFromInt64()
213 result = utmscale_fromInt64(0, (UDateTimeScale)scale, &status); in TestFromInt64()
219 result = utmscale_fromInt64(fromMin, (UDateTimeScale)scale, &status); in TestFromInt64()
226 result = utmscale_fromInt64(fromMin - 1, (UDateTimeScale)scale, &status); in TestFromInt64()
233 result = utmscale_fromInt64(fromMax, (UDateTimeScale)scale, &status); in TestFromInt64()
240 result = utmscale_fromInt64(fromMax + 1, (UDateTimeScale)scale, &status); in TestFromInt64()
270 toMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MIN_VALUE, &status); in TestToInt64()
271 toMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MAX_VALUE, &status); in TestToInt64()
274 result = utmscale_toInt64(0, (UDateTimeScale)scale, &status); in TestToInt64()
280 result = utmscale_toInt64(toMin, (UDateTimeScale)scale, &status); in TestToInt64()
287 result = utmscale_toInt64(toMin - 1, (UDateTimeScale)scale, &status); in TestToInt64()
295 result = utmscale_toInt64(toMax, (UDateTimeScale)scale, &status); in TestToInt64()
302 result = utmscale_toInt64(toMax + 1, (UDateTimeScale)scale, &status); in TestToInt64()
335 … int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestMonkey()
336 … int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestMonkey()
344 roundTripTest(value, (UDateTimeScale)scale); in TestMonkey()