Home
last modified time | relevance | path

Searched refs:millis (Results 1 – 25 of 150) sorted by relevance

123456

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DGrego.java227 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/
DGrego.java225 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/libusb/libusb/os/
Dthreads_windows.c27 DWORD millis; in usbi_cond_timedwait() local
29 millis = (DWORD)(tv->tv_sec * 1000L) + (tv->tv_usec / 1000L); in usbi_cond_timedwait()
32 millis++; in usbi_cond_timedwait()
34 if (SleepConditionVariableCS(cond, mutex, millis)) in usbi_cond_timedwait()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DICUDurationTest.java49 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/
DICUDurationTest.java52 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/
Dsimpletz.cpp397 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 …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dsimpletz.cpp397 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 …]
Dgregoimp.h253 static inline int32_t millisToJulianDay(double millis);
297 inline int32_t Grego::millisToJulianDay(double millis) { in millisToJulianDay() argument
298 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
/third_party/icu/icu4c/source/i18n/
Dsimpletz.cpp397 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 …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dsimpletz.cpp396 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 …]
Dgregoimp.h253 static inline int32_t millisToJulianDay(double millis);
297 inline int32_t Grego::millisToJulianDay(double millis) { in millisToJulianDay() argument
298 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DSimpleTimeZone.java626 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 …]
DDateTimeRule.java266 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/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DSimpleTimeZone.java647 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 …]
DDateTimeRule.java301 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/openssl/crypto/ts/
Dts_rsp_utils.c194 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()
/third_party/icu/icu4c/source/samples/date/
Ddate.c53 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/
Ddate.c52 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/skia/third_party/externals/icu/source/samples/date/
Ddate.c53 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/icu/icu4c/source/test/intltest/
Dcallimts.cpp56 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/grpc/src/core/lib/iomgr/
Dexec_ctx.cc83 gpr_timespec grpc_millis_to_timespec(grpc_millis millis, in grpc_millis_to_timespec() argument
87 if (millis == GRPC_MILLIS_INF_FUTURE) { in grpc_millis_to_timespec()
90 if (millis == GRPC_MILLIS_INF_PAST) { in grpc_millis_to_timespec()
95 return gpr_time_from_millis(millis, GPR_TIMESPAN); in grpc_millis_to_timespec()
98 gpr_time_from_millis(millis, GPR_TIMESPAN)); in grpc_millis_to_timespec()
/third_party/typescript/tests/baselines/reference/convertToAsyncFunction/
DconvertToAsyncFunction_noArgs2.ts3 function delay(millis: number): Promise<void> {
17 function delay(millis: number): Promise<void> {
DconvertToAsyncFunction_noArgs1.ts3 function delay(millis: number): Promise<void> {
17 function delay(millis: number): Promise<void> {
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timescale/
DTimeScaleDataTest.java231 long ticks, millis; in TestDotNet() local
241millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet()
247 if(millis != icuDate) { in TestDotNet()
250 (millis/dayMillis) + " != " + (icuDate/dayMillis) + in TestDotNet()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleDataTest.java228 long ticks, millis; in TestDotNet() local
238millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet()
244 if(millis != icuDate) { in TestDotNet()
247 (millis/dayMillis) + " != " + (icuDate/dayMillis) + in TestDotNet()

123456