Home
last modified time | relevance | path

Searched refs:universalTime (Results 1 – 6 of 6) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/util/
DUniversalTimeScale.java443 public static long toLong(long universalTime, int timeScale) in toLong() argument
445 TimeScaleData data = toRangeCheck(universalTime, timeScale); in toLong()
447 if (universalTime < 0) { in toLong()
448 if (universalTime < data.minRound) { in toLong()
449 return (universalTime + data.unitsRound) / data.units - data.epochOffsetP1; in toLong()
452 return (universalTime - data.unitsRound) / data.units - data.epochOffset; in toLong()
455 if (universalTime > data.maxRound) { in toLong()
456 return (universalTime - data.unitsRound) / data.units - data.epochOffsetM1; in toLong()
459 return (universalTime + data.unitsRound) / data.units - data.epochOffset; in toLong()
470 public static BigDecimal toBigDecimal(long universalTime, int timeScale) in toBigDecimal() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUniversalTimeScale.java489 public static long toLong(long universalTime, int timeScale) in toLong() argument
491 TimeScaleData data = toRangeCheck(universalTime, timeScale); in toLong()
493 if (universalTime < 0) { in toLong()
494 if (universalTime < data.minRound) { in toLong()
495 return (universalTime + data.unitsRound) / data.units - data.epochOffsetP1; in toLong()
498 return (universalTime - data.unitsRound) / data.units - data.epochOffset; in toLong()
501 if (universalTime > data.maxRound) { in toLong()
502 return (universalTime - data.unitsRound) / data.units - data.epochOffsetM1; in toLong()
505 return (universalTime + data.unitsRound) / data.units - data.epochOffset; in toLong()
518 public static BigDecimal toBigDecimal(long universalTime, int timeScale) in toBigDecimal() argument
[all …]
/external/icu/icu4c/source/i18n/
Dutmscale.cpp81 utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status) in utmscale_toInt64() argument
96 if (universalTime < data[UTSV_TO_MIN_VALUE] || universalTime > data[UTSV_TO_MAX_VALUE]) { in utmscale_toInt64()
101 if (universalTime < 0) { in utmscale_toInt64()
102 if (universalTime < data[UTSV_MIN_ROUND_VALUE]) { in utmscale_toInt64()
103 …return (universalTime + data[UTSV_UNITS_ROUND_VALUE]) / data[UTSV_UNITS_VALUE] - data[UTSV_EPOCH_O… in utmscale_toInt64()
106 …return (universalTime - data[UTSV_UNITS_ROUND_VALUE]) / data[UTSV_UNITS_VALUE] - data[UTSV_EPOCH_O… in utmscale_toInt64()
109 if (universalTime > data[UTSV_MAX_ROUND_VALUE]) { in utmscale_toInt64()
110 …return (universalTime - data[UTSV_UNITS_ROUND_VALUE]) / data[UTSV_UNITS_VALUE] - data[UTSV_EPOCH_O… in utmscale_toInt64()
113 …return (universalTime + data[UTSV_UNITS_ROUND_VALUE]) / data[UTSV_UNITS_VALUE] - data[UTSV_EPOCH_O… in utmscale_toInt64()
/external/icu/icu4c/source/i18n/unicode/
Dutmscale.h485 utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status);
/external/icu/libandroidicu/include/unicode/
Dutmscale.h485 utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status);
/external/icu/libandroidicu/static_shim/
Dshim.cpp2919 int64_t utmscale_toInt64_android(int64_t universalTime, UDateTimeScale timeScale, UErrorCode * stat… in utmscale_toInt64_android() argument
2920 return utmscale_toInt64(universalTime, timeScale, status); in utmscale_toInt64_android()