Home
last modified time | relevance | path

Searched refs:julianDay (Results 1 – 25 of 72) sorted by relevance

123

/external/icu/android_icu4j/src/main/java/android/icu/util/
DPersianCalendar.java375 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart() local
377 julianDay += MONTH_COUNT[month][2]; in handleComputeMonthStart()
379 return julianDay; in handleComputeMonthStart()
419 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
422 long daysSinceEpoch = julianDay - PERSIAN_EPOCH; in handleComputeFields()
DGregorianCalendar.java731 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
734 if (julianDay >= cutoverJulianDay) { in handleComputeFields()
742 long julianEpochDay = julianDay - (JAN_1_1_JULIAN_DAY - 2); in handleComputeFields()
835 int julianDay = 365*y + floorDivide(y, 4) + (JAN_1_1_JULIAN_DAY - 3); in handleComputeMonthStart() local
845 julianDay += floorDivide(y, 400) - floorDivide(y, 100) + 2; in handleComputeMonthStart()
853 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart()
856 return julianDay; in handleComputeMonthStart()
DChineseCalendar.java809 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
811 computeChineseFields(julianDay - EPOCH_JULIAN_DAY, // local days in handleComputeFields()
966 int julianDay = newMoon + EPOCH_JULIAN_DAY; in handleComputeMonthStart() local
975 computeGregorianFields(julianDay); in handleComputeMonthStart()
984 julianDay = newMoon + EPOCH_JULIAN_DAY; in handleComputeMonthStart()
990 return julianDay - 1; in handleComputeMonthStart()
DBuddhistCalendar.java205 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
206 super.handleComputeFields(julianDay); in handleComputeFields()
DTaiwanCalendar.java202 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
203 super.handleComputeFields(julianDay); in handleComputeFields()
DCopticCalendar.java249 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
252 jdToCE(julianDay, getJDEpochOffset(), fields); in handleComputeFields()
DCECalendar.java262 public static void jdToCE(int julianDay, int jdEpochOffset, int[] fields) { in jdToCE() argument
266 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DPersianCalendar.java373 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()
DGregorianCalendar.java756 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()
DChineseCalendar.java828 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()
DBuddhistCalendar.java218 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
219 super.handleComputeFields(julianDay); in handleComputeFields()
DTaiwanCalendar.java216 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
217 super.handleComputeFields(julianDay); in handleComputeFields()
DCopticCalendar.java270 protected void handleComputeFields(int julianDay) { in handleComputeFields() argument
273 jdToCE(julianDay, getJDEpochOffset(), fields); in handleComputeFields()
DCECalendar.java258 public static void jdToCE(int julianDay, int jdEpochOffset, int[] fields) { in jdToCE() argument
262 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
DIndianCalendar.java357 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()
/external/icu/icu4c/source/i18n/
Dpersncal.cpp173 …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()
Dgregocal.cpp366 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 …]
Dindiancal.cpp142 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()
Dcecal.cpp131 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()
Dcoptccal.cpp76 CopticCalendar::handleComputeFields(int32_t julianDay, UErrorCode &/*status*/) in handleComputeFields() argument
79 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
Dchnsecal.cpp264 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()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTimeTest.java204 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/
DCalendarAstronomer.java298 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/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarAstronomer.java300 julianDay = jdn; in setJulianDay()
338 if (julianDay == INVALID) { in getJulianDay()
339 julianDay = (double)(time - JULIAN_EPOCH_MS) / (double)DAY_MS; in getJulianDay()
341 return julianDay; in getJulianDay()
1429 private transient double julianDay = INVALID;
1443 julianDay = INVALID;
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java75 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()

123