/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | PersianCalendar.java | 373 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart() local 375 julianDay += MONTH_COUNT[month][2]; in handleComputeMonthStart() 377 return julianDay; in handleComputeMonthStart() 417 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 420 long daysSinceEpoch = julianDay - PERSIAN_EPOCH; in handleComputeFields()
|
D | GregorianCalendar.java | 756 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 759 if (julianDay >= cutoverJulianDay) { in handleComputeFields() 767 long julianEpochDay = julianDay - (JAN_1_1_JULIAN_DAY - 2); in handleComputeFields() 863 int julianDay = 365*y + floorDivide(y, 4) + (JAN_1_1_JULIAN_DAY - 3); in handleComputeMonthStart() local 873 julianDay += floorDivide(y, 400) - floorDivide(y, 100) + 2; in handleComputeMonthStart() 881 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart() 884 return julianDay; in handleComputeMonthStart()
|
D | ChineseCalendar.java | 828 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 830 computeChineseFields(julianDay - EPOCH_JULIAN_DAY, // local days in handleComputeFields() 986 int julianDay = newMoon + EPOCH_JULIAN_DAY; in handleComputeMonthStart() local 995 computeGregorianFields(julianDay); in handleComputeMonthStart() 1004 julianDay = newMoon + EPOCH_JULIAN_DAY; in handleComputeMonthStart() 1010 return julianDay - 1; in handleComputeMonthStart()
|
D | BuddhistCalendar.java | 218 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 219 super.handleComputeFields(julianDay); in handleComputeFields()
|
D | TaiwanCalendar.java | 216 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 217 super.handleComputeFields(julianDay); in handleComputeFields()
|
D | CopticCalendar.java | 272 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 275 jdToCE(julianDay, getJDEpochOffset(), fields); in handleComputeFields()
|
D | CECalendar.java | 258 public static void jdToCE(int julianDay, int jdEpochOffset, int[] fields) { in jdToCE() argument 262 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
|
D | IndianCalendar.java | 357 protected void handleComputeFields(int julianDay){ in handleComputeFields() argument 362 gregorianDay = jdToGregorian(julianDay); // Gregorian date for Julian day in handleComputeFields() 365 …yday = (int)(julianDay - jdAtStartOfGregYear); // Day number in Gregorian year (start… in handleComputeFields()
|
D | EthiopicCalendar.java | 325 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 328 jdToCE(julianDay, getJDEpochOffset(), fields); in handleComputeFields()
|
D | JapaneseCalendar.java | 278 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument 279 super.handleComputeFields(julianDay); in handleComputeFields()
|
D | Calendar.java | 5012 private final void computeGregorianAndDOWFields(int julianDay) { in computeGregorianAndDOWFields() argument 5013 computeGregorianFields(julianDay); in computeGregorianAndDOWFields() 5016 int dow = fields[DAY_OF_WEEK] = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() 5037 protected final void computeGregorianFields(int julianDay) { in computeGregorianFields() argument 5041 long gregorianEpochDay = julianDay - JAN_1_1_JULIAN_DAY; in computeGregorianFields() 5378 int julianDay = computeJulianDay(); in computeTime() local 5380 long millis = julianDayToMillis(julianDay); in computeTime() 5841 int julianDay = handleComputeMonthStart(year, month, useMonth); 5845 return julianDay + internalGet(DAY_OF_MONTH, getDefaultDayInMonth(year, month)); 5847 return julianDay + getDefaultDayInMonth(year, month); [all …]
|
/external/icu/icu4c/source/i18n/ |
D | persncal.cpp | 173 …int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21,… in handleComputeMonthStart() local 176 julianDay += kPersianNumDays[month]; in handleComputeMonthStart() 179 return julianDay; in handleComputeMonthStart() 210 void PersianCalendar::handleComputeFields(int32_t julianDay, UErrorCode &/*status*/) { in handleComputeFields() argument 213 int32_t daysSinceEpoch = julianDay - PERSIAN_EPOCH; in handleComputeFields()
|
D | gregocal.cpp | 366 void GregorianCalendar::handleComputeFields(int32_t julianDay, UErrorCode& status) { in handleComputeFields() argument 376 __FILE__, __LINE__, julianDay, getGregorianDayOfYear(), fCutoverJulianDay); in handleComputeFields() 380 if (julianDay >= fCutoverJulianDay) { in handleComputeFields() 388 int32_t julianEpochDay = julianDay - (kJan1_1JulianDay - 2); in handleComputeFields() 425 if((eyear == fGregorianCutoverYear) && (julianDay >= fCutoverJulianDay)) { in handleComputeFields() 543 int32_t julianDay = 365*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3); in handleComputeMonthStart() local 560 __FILE__, __LINE__, eyear, month, julianDay, gregShift); in handleComputeMonthStart() 562 julianDay += gregShift; in handleComputeMonthStart() 570 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart() 573 return julianDay; in handleComputeMonthStart() [all …]
|
D | indiancal.cpp | 142 double julianDay = (JULIAN_EPOCH - 1) + in gregorianToJD() local 153 return julianDay; in gregorianToJD() 290 void IndianCalendar::handleComputeFields(int32_t julianDay, UErrorCode& /* status */) { in handleComputeFields() argument 296 gregorianYear = jdToGregorian(julianDay, gd)[0]; // Gregorian date for Julian day in handleComputeFields() 299 …yday = (int32_t)(julianDay - jdAtStartOfGregYear); // Day number in Gregorian year (startin… in handleComputeFields()
|
D | cecal.cpp | 131 CECalendar::jdToCE(int32_t julianDay, int32_t jdEpochOffset, int32_t& year, int32_t& month, int32_t… in jdToCE() argument 136 c4 = ClockMath::floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
|
D | coptccal.cpp | 76 CopticCalendar::handleComputeFields(int32_t julianDay, UErrorCode &/*status*/) in handleComputeFields() argument 79 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
|
D | chnsecal.cpp | 264 void ChineseCalendar::handleComputeFields(int32_t julianDay, UErrorCode &/*status*/) { in handleComputeFields() argument 266 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days in handleComputeFields() 337 int32_t julianDay = newMoon + kEpochStartAsJulianDay; in handleComputeMonthStart() local 347 nonConstThis->computeGregorianFields(julianDay, status); in handleComputeMonthStart() 358 julianDay = newMoon + kEpochStartAsJulianDay; in handleComputeMonthStart() 364 return julianDay - 1; in handleComputeMonthStart()
|
D | buddhcal.cpp | 86 void BuddhistCalendar::handleComputeFields(int32_t julianDay, UErrorCode& status) in handleComputeFields() argument 88 GregorianCalendar::handleComputeFields(julianDay, status); in handleComputeFields()
|
D | taiwncal.cpp | 84 void TaiwanCalendar::handleComputeFields(int32_t julianDay, UErrorCode& status) in handleComputeFields() argument 86 GregorianCalendar::handleComputeFields(julianDay, status); in handleComputeFields()
|
D | ethpccal.cpp | 102 EthiopicCalendar::handleComputeFields(int32_t julianDay, UErrorCode &/*status*/) in handleComputeFields() argument 105 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
|
D | calendar.cpp | 1570 void Calendar::computeGregorianAndDOWFields(int32_t julianDay, UErrorCode &ec) in computeGregorianAndDOWFields() argument 1572 computeGregorianFields(julianDay, ec); in computeGregorianAndDOWFields() 1575 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() 1594 void Calendar::computeGregorianFields(int32_t julianDay, UErrorCode & /* ec */) { in computeGregorianFields() argument 1596 …Grego::dayToFields(julianDay - kEpochStartAsJulianDay, fGregorianYear, fGregorianMonth, fGregorian… in computeGregorianFields() 2956 int32_t julianDay = computeJulianDay(); in computeTime() local 2958 double millis = Grego::julianDayToMillis(julianDay); in computeTime() 3239 int32_t julianDay = handleComputeMonthStart(year, useMonth ? month : 0, useMonth); in handleComputeJulianDay() local 3250 return julianDay + dayOfMonth; in handleComputeJulianDay() 3254 return julianDay + internalGet(UCAL_DAY_OF_YEAR); in handleComputeJulianDay() [all …]
|
D | astro.cpp | 324 julianDay = jdn; in setJulianDay() 352 if (isINVALID(julianDay)) { in getJulianDay() 353 julianDay = (fTime - (double)JULIAN_EPOCH_MS) / (double)DAY_MS; in getJulianDay() 355 return julianDay; in getJulianDay() 1437 julianDay = INVALID; in clearCache()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | TimeTest.java | 204 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay() local 214 assertEquals(day, julianDay); in testGetJulianDay() 226 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay() local 227 time.setJulianDay(julianDay); in testSetJulianDay() 236 assertEquals(day, julianDay); in testSetJulianDay()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarAstronomer.java | 298 julianDay = jdn; in setJulianDay() 336 if (julianDay == INVALID) { in getJulianDay() 337 julianDay = (double)(time - JULIAN_EPOCH_MS) / (double)DAY_MS; in getJulianDay() 339 return julianDay; in getJulianDay() 1427 private transient double julianDay = INVALID; 1441 julianDay = INVALID;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowTime.java | 75 long julianDay = (millis + offsetMillis) / DAY_IN_MILLIS; in getJulianDay() local 76 return (int) julianDay + Time.EPOCH_JULIAN_DAY; in getJulianDay() 80 public long setJulianDay(int julianDay) { in setJulianDay() argument 85 long millis = (julianDay - Time.EPOCH_JULIAN_DAY) * DAY_IN_MILLIS; in setJulianDay() 91 int diff = julianDay - approximateDay; in setJulianDay()
|