Lines Matching refs:UDateTimeScale
101 static void roundTripTest(int64_t value, UDateTimeScale scale) in roundTripTest()
111 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest()
122 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest()
158 …int64_t units = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_UNITS_VALUE, &status); in TestEpochOffsets()
159 …int64_t epochOffset = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_EPOCH_OFFSET_VALUE, &… in TestEpochOffsets()
161 epochOffsetTest(epochOffset, units, (UDateTimeScale)scale); in TestEpochOffsets()
171 … int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestFromLimits()
172 … int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestFromLimits()
174 roundTripTest(fromMin, (UDateTimeScale)scale); in TestFromLimits()
175 roundTripTest(fromMax, (UDateTimeScale)scale); in TestFromLimits()
185 … int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestToLimits()
186 … int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestToLimits()
187 … int64_t toMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MIN_VALUE, &status); in TestToLimits()
188 … int64_t toMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MAX_VALUE, &status); in TestToLimits()
190 toLimitTest(toMin, fromMin, (UDateTimeScale)scale); in TestToLimits()
191 toLimitTest(toMax, fromMax, (UDateTimeScale)scale); in TestToLimits()
211 fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestFromInt64()
212 fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestFromInt64()
215 result = utmscale_fromInt64(0, (UDateTimeScale)scale, &status); in TestFromInt64()
221 result = utmscale_fromInt64(fromMin, (UDateTimeScale)scale, &status); in TestFromInt64()
228 result = utmscale_fromInt64(fromMin - 1, (UDateTimeScale)scale, &status); in TestFromInt64()
235 result = utmscale_fromInt64(fromMax, (UDateTimeScale)scale, &status); in TestFromInt64()
242 result = utmscale_fromInt64(fromMax + 1, (UDateTimeScale)scale, &status); in TestFromInt64()
272 toMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MIN_VALUE, &status); in TestToInt64()
273 toMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MAX_VALUE, &status); in TestToInt64()
276 result = utmscale_toInt64(0, (UDateTimeScale)scale, &status); in TestToInt64()
282 result = utmscale_toInt64(toMin, (UDateTimeScale)scale, &status); in TestToInt64()
289 result = utmscale_toInt64(toMin - 1, (UDateTimeScale)scale, &status); in TestToInt64()
297 result = utmscale_toInt64(toMax, (UDateTimeScale)scale, &status); in TestToInt64()
304 result = utmscale_toInt64(toMax + 1, (UDateTimeScale)scale, &status); in TestToInt64()
337 … int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status); in TestMonkey()
338 … int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status); in TestMonkey()
346 roundTripTest(value, (UDateTimeScale)scale); in TestMonkey()