Home
last modified time | relevance | path

Searched refs:eyear (Results 1 – 25 of 47) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dethpccal.cpp85 int32_t eyear; in handleGetExtendedYear() local
87 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
89 eyear = internalGet(UCAL_YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
95 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
97 eyear = internalGet(UCAL_YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
100 return eyear; in handleGetExtendedYear()
106 int32_t eyear, month, day, era, year; in handleComputeFields() local
107 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
111 year = eyear + AMETE_MIHRET_DELTA; in handleComputeFields()
113 if (eyear > 0) { in handleComputeFields()
[all …]
Dcoptccal.cpp62 int32_t eyear; in handleGetExtendedYear() local
64 eyear = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
69 eyear = 1 - internalGet(UCAL_YEAR, 1); // Convert to extended year in handleGetExtendedYear()
71 eyear = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
74 return eyear; in handleGetExtendedYear()
80 int32_t eyear, month, day, era, year; in handleComputeFields() local
81 jdToCE(julianDay, getJDEpochOffset(), eyear, month, day); in handleComputeFields()
83 if (eyear <= 0) { in handleComputeFields()
85 year = 1 - eyear; in handleComputeFields()
88 year = eyear; in handleComputeFields()
[all …]
Dgregocal.cpp369 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; in handleComputeFields() local
386 eyear = getGregorianYear(); in handleComputeFields()
391eyear = (int32_t) ClockMath::floorDivide((4.0*julianEpochDay) + 1464.0, (int32_t) 1461, unusedRema… in handleComputeFields()
394 int32_t january1 = 365*(eyear-1) + ClockMath::floorDivide(eyear-1, (int32_t)4); in handleComputeFields()
403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
427 if((eyear == fGregorianCutoverYear) && (julianDay >= fCutoverJulianDay)) { in handleComputeFields()
429 int32_t gregShift = Grego::gregorianShift(eyear); in handleComputeFields()
440 internalSet(UCAL_EXTENDED_YEAR, eyear); in handleComputeFields()
442 if (eyear < 1) { in handleComputeFields()
444 eyear = 1 - eyear; in handleComputeFields()
[all …]
Dhebrwcal.cpp530 int32_t HebrewCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
532 return startOfYear(eyear+1, status) - startOfYear(eyear, status); in handleGetYearLength()
635 int32_t HebrewCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) c… in handleComputeMonthStart() argument
644 month += monthsInYear(--eyear); in handleComputeMonthStart()
648 month -= monthsInYear(eyear++); in handleComputeMonthStart()
651 int32_t day = startOfYear(eyear, status); in handleComputeMonthStart()
658 if (isLeapYear(eyear)) { in handleComputeMonthStart()
659 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
661 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
Dindiancal.cpp112 int32_t IndianCalendar::handleGetMonthLength(int32_t eyear, int32_t month) const { in handleGetMonthLength() argument
114 eyear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
117 if (isGregorianLeap(eyear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
133 int32_t IndianCalendar::handleGetYearLength(int32_t eyear) const { in handleGetYearLength()
134 return isGregorianLeap(eyear + INDIAN_ERA_START) ? 366 : 365; in handleGetYearLength()
241 int32_t IndianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /* useMonth */ … in handleComputeMonthStart() argument
248 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
257 double jd = IndianToJD(eyear ,imonth, 1); in handleComputeMonthStart()
Dpersncal.cpp168 int32_t PersianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/) … in handleComputeMonthStart() argument
172 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
175 …int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21,… in handleComputeMonthStart()
Djapancal.cpp142 int32_t JapaneseCalendar::getDefaultMonthInYear(int32_t eyear) in getDefaultMonthInYear() argument
154 if(eyear == eraStart[0]) { in getDefaultMonthInYear()
163 int32_t JapaneseCalendar::getDefaultDayInMonth(int32_t eyear, int32_t month) in getDefaultDayInMonth() argument
172 if(eyear == eraStart[0]) { in getDefaultDayInMonth()
Dgregoimp.h260 static inline int32_t gregorianShift(int32_t eyear);
301 inline int32_t Grego::gregorianShift(int32_t eyear) { in gregorianShift() argument
302 int64_t y = (int64_t)eyear-1; in gregorianShift()
Djapancal.h208 virtual int32_t getDefaultMonthInYear(int32_t eyear);
218 virtual int32_t getDefaultDayInMonth(int32_t eyear, int32_t month);
Dcecal.cpp78 CECalendar::handleComputeMonthStart(int32_t eyear,int32_t emonth, UBool /*useMonth*/) const in handleComputeMonthStart() argument
80 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
Dhebrwcal.h324 virtual int32_t handleGetYearLength(int32_t eyear) const;
363 virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java738 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument
739 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
759 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local
765 eyear = getGregorianYear(); in handleComputeFields()
770 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields()
773 long january1 = 365L*(eyear-1L) + floorDivide(eyear-1L, 4L); in handleComputeFields()
782 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
797 internalSet(EXTENDED_YEAR, eyear); in handleComputeFields()
799 if (eyear < 1) { in handleComputeFields()
801 eyear = 1 - eyear; in handleComputeFields()
[all …]
DHebrewCalendar.java748 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument
749 return (int)(startOfYear(eyear+1) - startOfYear(eyear)); in handleGetYearLength()
848 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument
857 month += monthsInYear(--eyear); in handleComputeMonthStart()
861 month -= monthsInYear(eyear++); in handleComputeMonthStart()
864 long day = startOfYear(eyear); in handleComputeMonthStart()
867 if (isLeapYear(eyear)) { in handleComputeMonthStart()
868 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
870 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
DEthiopicCalendar.java303 int eyear; in handleGetExtendedYear() local
305 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
307 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
313 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
315 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
318 return eyear; in handleGetExtendedYear()
DCopticCalendar.java251 int eyear; in handleGetExtendedYear() local
253 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
258 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear()
260 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
263 return eyear; in handleGetExtendedYear()
DPersianCalendar.java366 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument
371 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
375 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart()
DBuddhistCalendar.java213 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument
214 return super.handleComputeMonthStart(eyear, month, useMonth); in handleComputeMonthStart()
DCECalendar.java178 protected int handleComputeMonthStart(int eyear, in handleComputeMonthStart() argument
181 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGregorianCalendar.java714 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument
715 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
734 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local
740 eyear = getGregorianYear(); in handleComputeFields()
745 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields()
748 long january1 = 365L*(eyear-1L) + floorDivide(eyear-1L, 4L); in handleComputeFields()
757 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
772 internalSet(EXTENDED_YEAR, eyear); in handleComputeFields()
774 if (eyear < 1) { in handleComputeFields()
776 eyear = 1 - eyear; in handleComputeFields()
[all …]
DHebrewCalendar.java722 protected int handleGetYearLength(int eyear) { in handleGetYearLength() argument
723 return (int)(startOfYear(eyear+1) - startOfYear(eyear)); in handleGetYearLength()
820 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument
829 month += monthsInYear(--eyear); in handleComputeMonthStart()
833 month -= monthsInYear(eyear++); in handleComputeMonthStart()
836 long day = startOfYear(eyear); in handleComputeMonthStart()
839 if (isLeapYear(eyear)) { in handleComputeMonthStart()
840 day += LEAP_MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
842 day += MONTH_START[month][yearType(eyear)]; in handleComputeMonthStart()
DEthiopicCalendar.java278 int eyear; in handleGetExtendedYear() local
280 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
282 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
288 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
290 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
293 return eyear; in handleGetExtendedYear()
DCopticCalendar.java229 int eyear; in handleGetExtendedYear() local
231 eyear = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear()
236 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear()
238 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
241 return eyear; in handleGetExtendedYear()
DPersianCalendar.java369 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument
374 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
378 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart()
DBuddhistCalendar.java201 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) { in handleComputeMonthStart() argument
202 return super.handleComputeMonthStart(eyear, month, useMonth); in handleComputeMonthStart()
DCECalendar.java180 protected int handleComputeMonthStart(int eyear, in handleComputeMonthStart() argument
183 return ceToJD(eyear, emonth, 0, getJDEpochOffset()); in handleComputeMonthStart()

12