/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | DangiCalendar.java | 67 …long[] millis1897 = { (1897 - 1970) * 365L * ONE_DAY }; // some days of error is not a problem here 68 …long[] millis1898 = { (1898 - 1970) * 365L * ONE_DAY }; // some days of error is not a problem here 69 …long[] millis1912 = { (1912 - 1970) * 365L * ONE_DAY }; // this doesn't create an issue for 1911/1…
|
D | IslamicCalendar.java | 624 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 631 origin -= ONE_DAY; in trueMonthStart() 638 origin += ONE_DAY; in trueMonthStart() 643 start = (origin - HIJRA_MILLIS) / ONE_DAY + 1; in trueMonthStart()
|
D | Calendar.java | 1186 protected static final long ONE_DAY = 24*ONE_HOUR; field in Calendar 1193 protected static final long ONE_WEEK = 7*ONE_DAY; 1240 protected static final long MAX_MILLIS = (MAX_JULIAN - EPOCH_JULIAN_DAY) * ONE_DAY; 2976 long delta = amount * ONE_DAY; // Scale up from days to millis in roll() 2977 long min2 = time - (internalGet(DAY_OF_YEAR) - 1) * ONE_DAY; in roll() 2979 time = (time + delta - min2) % (yearLength*ONE_DAY); in roll() 2980 if (time < 0) time += yearLength*ONE_DAY; in roll() 2990 long delta = amount * ONE_DAY; // Scale up from days to millis in roll() 2996 long min2 = time - leadDays * ONE_DAY; in roll() 3171 delta *= ONE_DAY; in add() [all …]
|
D | ChineseCalendar.java | 656 long millis = days * ONE_DAY; in daysToMillis() 666 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); in millisToDays()
|
D | GregorianCalendar.java | 484 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); in setGregorianChange()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | DangiCalendar.java | 65 …long[] millis1897 = { (1897 - 1970) * 365L * ONE_DAY }; // some days of error is not a problem here 66 …long[] millis1898 = { (1898 - 1970) * 365L * ONE_DAY }; // some days of error is not a problem here 67 …long[] millis1912 = { (1912 - 1970) * 365L * ONE_DAY }; // this doesn't create an issue for 1911/1…
|
D | IslamicCalendar.java | 651 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 658 origin -= ONE_DAY; in trueMonthStart() 665 origin += ONE_DAY; in trueMonthStart() 670 start = (origin - HIJRA_MILLIS) / ONE_DAY + 1; in trueMonthStart()
|
D | Calendar.java | 1235 protected static final long ONE_DAY = 24*ONE_HOUR; field in Calendar 1243 protected static final long ONE_WEEK = 7*ONE_DAY; 1297 protected static final long MAX_MILLIS = (MAX_JULIAN - EPOCH_JULIAN_DAY) * ONE_DAY; 3073 long delta = amount * ONE_DAY; // Scale up from days to millis in roll() 3074 long min2 = time - (internalGet(DAY_OF_YEAR) - 1) * ONE_DAY; in roll() 3076 time = (time + delta - min2) % (yearLength*ONE_DAY); in roll() 3077 if (time < 0) time += yearLength*ONE_DAY; in roll() 3087 long delta = amount * ONE_DAY; // Scale up from days to millis in roll() 3093 long min2 = time - leadDays * ONE_DAY; in roll() 3269 delta *= ONE_DAY; in add() [all …]
|
D | ChineseCalendar.java | 674 long millis = days * ONE_DAY; in daysToMillis() 684 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); in millisToDays()
|
D | GregorianCalendar.java | 499 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); in setGregorianChange()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 37 static final long ONE_DAY = 24*ONE_HOUR; field in TimeZoneBoundaryTest 38 static final long ONE_YEAR = (long)(365.25 * ONE_DAY); 662 long max = min + (long)(365.25 / 2 * ONE_DAY); in _testUsingBinarySearch() 816 long limit = time + ONE_YEAR + ONE_DAY; in findBoundariesStepwise() 856 findBoundariesStepwise(1997, ONE_DAY, safeGetTimeZone("America/New_York"), 2); in TestStepwise() 859 … findBoundariesStepwise(1997, ONE_DAY, safeGetTimeZone("America/Phoenix"), 0); // Added 3Jan01 in TestStepwise() 860 findBoundariesStepwise(1997, ONE_DAY, safeGetTimeZone(AUSTRALIA), 2); in TestStepwise()
|
D | TimeZoneRegressionTest.java | 224 final int ONE_DAY = 24*60*60*1000; in checkCalendar314() local 245 millis += ONE_DAY; in checkCalendar314() 249 while (millis >= ONE_DAY) { in checkCalendar314() 250 millis -= ONE_DAY; in checkCalendar314()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 34 static final long ONE_DAY = 24*ONE_HOUR; field in TimeZoneBoundaryTest 35 static final long ONE_YEAR = (long)(365.25 * ONE_DAY); 659 long max = min + (long)(365.25 / 2 * ONE_DAY); in _testUsingBinarySearch() 813 long limit = time + ONE_YEAR + ONE_DAY; in findBoundariesStepwise() 853 findBoundariesStepwise(1997, ONE_DAY, safeGetTimeZone("America/New_York"), 2); in TestStepwise() 856 … findBoundariesStepwise(1997, ONE_DAY, safeGetTimeZone("America/Phoenix"), 0); // Added 3Jan01 in TestStepwise() 857 findBoundariesStepwise(1997, ONE_DAY, safeGetTimeZone(AUSTRALIA), 2); in TestStepwise()
|
D | TimeZoneRegressionTest.java | 221 final int ONE_DAY = 24*60*60*1000; in checkCalendar314() local 242 millis += ONE_DAY; in checkCalendar314() 246 while (millis >= ONE_DAY) { in checkCalendar314() 247 millis -= ONE_DAY; in checkCalendar314()
|
/external/icu/icu4c/source/test/intltest/ |
D | tzbdtest.cpp | 57 ONE_DAY(24 * ONE_HOUR), in TimeZoneBoundaryTest() 58 ONE_YEAR(uprv_floor(365.25 * ONE_DAY)), in TimeZoneBoundaryTest() 457 UDate limit = time + ONE_YEAR + ONE_DAY; in findBoundariesStepwise() 507 findBoundariesStepwise(1997, ONE_DAY, zone, 2); in TestStepwise() 510 findBoundariesStepwise(1997, ONE_DAY, zone, 0); in TestStepwise() 513 findBoundariesStepwise(1997, ONE_DAY, zone, 2); in TestStepwise()
|
D | calregts.cpp | 2071 #define ONE_DAY (24*ONE_HOUR) macro 2099 UDate days = ONE_DAY; in TestJ81() 2210 { UCAL_WEEK_OF_YEAR, ADD_ROLL, PLUS_MINUS, 1, -ONE_DAY, +6*ONE_DAY }, in TestJ81() 2211 { UCAL_WEEK_OF_YEAR, ADD_ROLL, PLUS_MINUS, 1, -ONE_DAY, +6*ONE_DAY }, in TestJ81() 2212 { UCAL_WEEK_OF_MONTH, ADD|ROLL, PLUS|MINUS, 1, -ONE_DAY, +6*ONE_DAY }, in TestJ81() 2213 { UCAL_DATE, ADD|ROLL, PLUS|MINUS, 2, -ONE_DAY, +1*ONE_DAY }, in TestJ81() 2214 { UCAL_DATE, ROLL, PLUS, -6, -ONE_DAY, +14*ONE_DAY }, in TestJ81() 2215 { UCAL_DATE, ROLL, PLUS, -7, 0, +14*ONE_DAY }, in TestJ81() 2216 { UCAL_DATE, ROLL, PLUS, -7, +ONE_DAY, +15*ONE_DAY }, in TestJ81() 2217 { UCAL_DATE, ROLL, PLUS, +18, -ONE_DAY, -4*ONE_DAY }, in TestJ81() [all …]
|
D | tzbdtest.h | 90 const UDate ONE_DAY; variable
|
D | calcasts.cpp | 48 static const double ONE_DAY = 24*ONE_HOUR; in doTestCases() local 54 UDate t = (JULIAN_EPOCH+(ONE_DAY*cases[i].julian)); in doTestCases()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | TestCase.java | 96 setTime(new Date(JULIAN_EPOCH + (long)(ONE_DAY * julian))); in TestCase() 241 protected static final long ONE_DAY = 24*ONE_HOUR; field in TestCase
|
D | ChineseTestCase.java | 36 setTime(new Date(JULIAN_EPOCH + (long)(ONE_DAY * julian))); in ChineseTestCase()
|
D | CompatibilityTest.java | 74 final int ONE_DAY = 24*60*60*1000; in TestGregorianChangeover() local 100 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 124 final long ONE_DAY = 24*60*60*1000L; in TestMapping() local 153 long millis = ((long)julian - EPOCH_JULIAN) * ONE_DAY; in TestMapping() 174 final long ONE_DAY = 24*60*60*1000L; in TestMapping() local 195 long millis = (julian - EPOCH_JULIAN) * ONE_DAY; in TestMapping() 210 " (" + ((float)delta/ONE_DAY) + " day delta) => " + in TestMapping() 231 " (" + ((float)delta/ONE_DAY) + " day delta) => " + in TestMapping()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | TestCase.java | 99 setTime(new Date(JULIAN_EPOCH + (long)(ONE_DAY * julian))); in TestCase() 244 protected static final long ONE_DAY = 24*ONE_HOUR; field in TestCase
|
D | ChineseTestCase.java | 39 setTime(new Date(JULIAN_EPOCH + (long)(ONE_DAY * julian))); in ChineseTestCase()
|
D | CompatibilityTest.java | 77 final int ONE_DAY = 24*60*60*1000; in TestGregorianChangeover() local 103 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 127 final long ONE_DAY = 24*60*60*1000L; in TestMapping() local 156 long millis = ((long)julian - EPOCH_JULIAN) * ONE_DAY; in TestMapping() 177 final long ONE_DAY = 24*60*60*1000L; in TestMapping() local 198 long millis = (julian - EPOCH_JULIAN) * ONE_DAY; in TestMapping() 213 " (" + ((float)delta/ONE_DAY) + " day delta) => " + in TestMapping() 234 " (" + ((float)delta/ONE_DAY) + " day delta) => " + in TestMapping()
|
/external/icu/android_icu4j/api/public/ |
D | current.txt | 4043 field protected static final long ONE_DAY = 86400000L; // 0x5265c00L
|