/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | Grego.java | 227 int millis = fields[5]; in timeToString() local 228 int hour = millis / MILLIS_PER_HOUR; in timeToString() 229 millis = millis % MILLIS_PER_HOUR; in timeToString() 230 int min = millis / MILLIS_PER_MINUTE; in timeToString() 231 millis = millis % MILLIS_PER_MINUTE; in timeToString() 232 int sec = millis / MILLIS_PER_SECOND; in timeToString() 233 millis = millis % MILLIS_PER_SECOND; in timeToString() 236 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 225 int millis = fields[5]; in timeToString() local 226 int hour = millis / MILLIS_PER_HOUR; in timeToString() 227 millis = millis % MILLIS_PER_HOUR; in timeToString() 228 int min = millis / MILLIS_PER_MINUTE; in timeToString() 229 millis = millis % MILLIS_PER_MINUTE; in timeToString() 230 int sec = millis / MILLIS_PER_SECOND; in timeToString() 231 millis = millis % MILLIS_PER_SECOND; in timeToString() 234 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
|
/third_party/openssl/ |
D | e_os.h | 292 static ossl_inline void ossl_sleep(unsigned long millis) in ossl_sleep() argument 296 ts.tv_sec = (long int) (millis / 1000); in ossl_sleep() 297 ts.tv_nsec = (long int) (millis % 1000) * 1000000ul; in ossl_sleep() 303 PROCESS_DELAY_(millis * 1000); in ossl_sleep() 307 usleep(millis * 1000); in ossl_sleep() 309 usleep(millis * 1000); in ossl_sleep() 312 usleep(millis * 1000); in ossl_sleep() 317 static ossl_inline void ossl_sleep(unsigned long millis) in ossl_sleep() argument 319 Sleep(millis); in ossl_sleep() 323 static ossl_inline void ossl_sleep(unsigned long millis) in ossl_sleep() argument [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | ICUDurationTest.java | 49 ICUTestDuration(long millis) { in ICUTestDuration() argument 51 if (millis > 0) { in ICUTestDuration() 53 } else if (millis == 0) { in ICUTestDuration() 58 millis = -millis; in ICUTestDuration() 60 long d = millis / 86400000L; in ICUTestDuration() 61 millis %= 86400000L; in ICUTestDuration() 65 long h = millis / 3600000L; in ICUTestDuration() 66 millis %= 3600000L; in ICUTestDuration() 70 long m = millis / 60000L; in ICUTestDuration() 71 millis %= 60000L; in ICUTestDuration() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/duration/ |
D | ICUDurationTest.java | 52 ICUTestDuration(long millis) { in ICUTestDuration() argument 54 if (millis > 0) { in ICUTestDuration() 56 } else if (millis == 0) { in ICUTestDuration() 61 millis = -millis; in ICUTestDuration() 63 long d = millis / 86400000L; in ICUTestDuration() 64 millis %= 86400000L; in ICUTestDuration() 68 long h = millis / 3600000L; in ICUTestDuration() 69 millis %= 3600000L; in ICUTestDuration() 73 long m = millis / 60000L; in ICUTestDuration() 74 millis %= 60000L; in ICUTestDuration() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | simpletz.cpp | 397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() 416 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 435 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 443 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 456 || millis < 0 in getOffset() 457 || millis >= U_MILLIS_PER_DAY in getOffset() 479 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 493 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 523 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local [all …]
|
D | chnsecal.cpp | 484 double millis = days * (double)kOneDay; in daysToMillis() local 488 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in daysToMillis() 490 return millis - (double)(rawOffset + dstOffset); in daysToMillis() 493 return millis - (double)CHINA_OFFSET; in daysToMillis() 501 double ChineseCalendar::millisToDays(double millis) const { in millisToDays() 505 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in millisToDays() 507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays() 510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | simpletz.cpp | 396 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 410 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() 415 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 434 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 442 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 455 || millis < 0 in getOffset() 456 || millis >= U_MILLIS_PER_DAY in getOffset() 478 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 492 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 520 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local [all …]
|
D | chnsecal.cpp | 484 double millis = days * (double)kOneDay; in daysToMillis() local 488 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in daysToMillis() 490 return millis - (double)(rawOffset + dstOffset); in daysToMillis() 493 return millis - (double)CHINA_OFFSET; in daysToMillis() 501 double ChineseCalendar::millisToDays(double millis) const { in millisToDays() 505 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in millisToDays() 507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays() 510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | simpletz.cpp | 397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() 416 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 435 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 443 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 456 || millis < 0 in getOffset() 457 || millis >= U_MILLIS_PER_DAY in getOffset() 479 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 493 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 523 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local [all …]
|
D | chnsecal.cpp | 484 double millis = days * (double)kOneDay; in daysToMillis() local 488 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in daysToMillis() 490 return millis - (double)(rawOffset + dstOffset); in daysToMillis() 493 return millis - (double)CHINA_OFFSET; in daysToMillis() 501 double ChineseCalendar::millisToDays(double millis) const { in millisToDays() 505 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in millisToDays() 507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays() 510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
|
/third_party/icu/icu4c/source/i18n/ |
D | simpletz.cpp | 397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() 416 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 435 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 443 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 456 || millis < 0 in getOffset() 457 || millis >= U_MILLIS_PER_DAY in getOffset() 479 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 493 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 523 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local [all …]
|
D | chnsecal.cpp | 484 double millis = days * (double)kOneDay; in daysToMillis() local 488 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in daysToMillis() 490 return millis - (double)(rawOffset + dstOffset); in daysToMillis() 493 return millis - (double)CHINA_OFFSET; in daysToMillis() 501 double ChineseCalendar::millisToDays(double millis) const { in millisToDays() 505 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in millisToDays() 507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays() 510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | SimpleTimeZone.java | 647 int dayOfWeek, int millis) in getOffset() argument 660 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset() 669 int dayOfWeek, int millis, in getOffset() argument 682 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 687 int dayOfWeek, int millis, in getOffset() argument 701 || millis < 0 in getOffset() 702 || millis >= Grego.MILLIS_PER_DAY in getOffset() 756 day, dayOfWeek, millis, in getOffset() 773 day, dayOfWeek, millis, in getOffset() 852 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument [all …]
|
D | DateTimeRule.java | 301 int millis = time % 1000; in toString() local 322 buf.append(millis/100); in toString() 323 buf.append((millis/10)%10); in toString() 324 buf.append(millis%10); in toString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | SimpleTimeZone.java | 626 int dayOfWeek, int millis) in getOffset() argument 639 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset() 648 int dayOfWeek, int millis, in getOffset() argument 661 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 666 int dayOfWeek, int millis, in getOffset() argument 680 || millis < 0 in getOffset() 681 || millis >= Grego.MILLIS_PER_DAY in getOffset() 735 day, dayOfWeek, millis, in getOffset() 752 day, dayOfWeek, millis, in getOffset() 830 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument [all …]
|
D | DateTimeRule.java | 266 int millis = time % 1000; in toString() local 287 buf.append(millis/100); in toString() 288 buf.append((millis/10)%10); in toString() 289 buf.append(millis%10); in toString()
|
/third_party/openssl/crypto/ts/ |
D | ts_rsp_utils.c | 194 int TS_ACCURACY_set_millis(TS_ACCURACY *a, const ASN1_INTEGER *millis) in TS_ACCURACY_set_millis() argument 198 if (a->millis == millis) in TS_ACCURACY_set_millis() 200 if (millis != NULL) { in TS_ACCURACY_set_millis() 201 new_millis = ASN1_INTEGER_dup(millis); in TS_ACCURACY_set_millis() 207 ASN1_INTEGER_free(a->millis); in TS_ACCURACY_set_millis() 208 a->millis = new_millis; in TS_ACCURACY_set_millis() 214 return a->millis; in TS_ACCURACY_get_millis()
|
D | ts_rsp_sign.c | 155 ASN1_INTEGER_free(ctx->millis); in TS_RESP_CTX_free() 242 ASN1_INTEGER_free(ctx->millis); \ 243 ctx->millis = NULL; \ 248 int secs, int millis, int micros) in TS_RESP_CTX_set_accuracy() argument 256 if (millis in TS_RESP_CTX_set_accuracy() 257 && ((ctx->millis = ASN1_INTEGER_new()) == NULL in TS_RESP_CTX_set_accuracy() 258 || !ASN1_INTEGER_set(ctx->millis, millis))) in TS_RESP_CTX_set_accuracy() 557 if ((ctx->seconds || ctx->millis || ctx->micros) in ts_RESP_create_tst_info() 562 if (ctx->millis && !TS_ACCURACY_set_millis(accuracy, ctx->millis)) in ts_RESP_create_tst_info()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | callimts.cpp | 56 CalendarLimitTest::test(UDate millis, icu::Calendar* cal, icu::DateFormat* fmt) in test() argument 62 cal->setTime(millis, exception); in test() 64 fmt->format(millis, theDate); in test() 67 if(! withinErr(dt, millis, kDrift)) { in test() 69 dt, millis, uprv_fabs(millis-dt), uprv_fabs(dt*kDrift)); in test() 72 logln(UnicodeString("OK: got ") + dt + ", wanted " + millis); in test() 366 UDate millis = ucal_getNow(); in doLimitsTest() local 367 UDate mark = millis + 5000; // 5 sec in doLimitsTest() 368 millis -= testDuration * 1000; // stop time if testDuration<0 in doLimitsTest() 372 : ucal_getNow() < millis; in doLimitsTest()
|
/third_party/icu/icu4c/source/samples/date/ |
D | date.c | 53 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… 81 char *millis = NULL; in main() local 129 millis = argv[optInd]; in main() 173 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main() 305 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… in getWhen() argument 313 if(millis != NULL) { in getWhen() 314 sscanf(millis, "%lf", &when); in getWhen()
|
/third_party/skia/third_party/externals/icu/source/samples/date/ |
D | date.c | 53 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… 81 char *millis = NULL; in main() local 129 millis = argv[optInd]; in main() 173 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main() 305 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… in getWhen() argument 313 if(millis != NULL) { in getWhen() 314 sscanf(millis, "%lf", &when); in getWhen()
|
/third_party/flutter/skia/third_party/externals/icu/source/samples/date/ |
D | date.c | 52 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… 80 char *millis = NULL; in main() local 128 millis = argv[optInd]; in main() 172 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main() 304 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… in getWhen() argument 312 if(millis != NULL) { in getWhen() 313 sscanf(millis, "%lf", &when); in getWhen()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
D | TimeScaleDataTest.java | 228 long ticks, millis; in TestDotNet() local 238 …millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet() 244 if(millis != icuDate) { in TestDotNet() 247 (millis/dayMillis) + " != " + (icuDate/dayMillis) + in TestDotNet()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timescale/ |
D | TimeScaleDataTest.java | 231 long ticks, millis; in TestDotNet() local 241 …millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet() 247 if(millis != icuDate) { in TestDotNet() 250 (millis/dayMillis) + " != " + (icuDate/dayMillis) + in TestDotNet()
|