Lines Matching refs:UDateTimeScale
100 static void roundTripTest(int64_t value, UDateTimeScale scale)
110 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale)
121 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale)
157 int64_t units = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_UNITS_VALUE, &status);
158 int64_t epochOffset = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_EPOCH_OFFSET_VALUE, &status);
160 epochOffsetTest(epochOffset, units, (UDateTimeScale)scale);
170 int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status);
171 int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status);
173 roundTripTest(fromMin, (UDateTimeScale)scale);
174 roundTripTest(fromMax, (UDateTimeScale)scale);
184 int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status);
185 int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status);
186 int64_t toMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MIN_VALUE, &status);
187 int64_t toMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MAX_VALUE, &status);
189 toLimitTest(toMin, fromMin, (UDateTimeScale)scale);
190 toLimitTest(toMax, fromMax, (UDateTimeScale)scale);
210 fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status);
211 fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status);
214 result = utmscale_fromInt64(0, (UDateTimeScale)scale, &status);
220 result = utmscale_fromInt64(fromMin, (UDateTimeScale)scale, &status);
227 result = utmscale_fromInt64(fromMin - 1, (UDateTimeScale)scale, &status);
234 result = utmscale_fromInt64(fromMax, (UDateTimeScale)scale, &status);
241 result = utmscale_fromInt64(fromMax + 1, (UDateTimeScale)scale, &status);
271 toMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MIN_VALUE, &status);
272 toMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_TO_MAX_VALUE, &status);
275 result = utmscale_toInt64(0, (UDateTimeScale)scale, &status);
281 result = utmscale_toInt64(toMin, (UDateTimeScale)scale, &status);
288 result = utmscale_toInt64(toMin - 1, (UDateTimeScale)scale, &status);
296 result = utmscale_toInt64(toMax, (UDateTimeScale)scale, &status);
303 result = utmscale_toInt64(toMax + 1, (UDateTimeScale)scale, &status);
336 int64_t fromMin = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MIN_VALUE, &status);
337 int64_t fromMax = utmscale_getTimeScaleValue((UDateTimeScale)scale, UTSV_FROM_MAX_VALUE, &status);
345 roundTripTest(value, (UDateTimeScale)scale);