Home
last modified time | relevance | path

Searched refs:gyear (Results 1 – 13 of 13) sorted by relevance

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java699 private int winterSolstice(int gyear) { in winterSolstice() argument
701 long cacheValue = winterSolsticeCache.get(gyear); in winterSolstice()
708 long ms = daysToMillis(computeGregorianMonthStart(gyear, DECEMBER) + in winterSolstice()
716 winterSolsticeCache.put(gyear, cacheValue); in winterSolstice()
853 private void computeChineseFields(int days, int gyear, int gmonth, in computeChineseFields() argument
861 int solsticeAfter = winterSolstice(gyear); in computeChineseFields()
863 solsticeBefore = winterSolstice(gyear - 1); in computeChineseFields()
866 solsticeAfter = winterSolstice(gyear + 1); in computeChineseFields()
896 int extended_year = gyear - epochYear; in computeChineseFields()
897 int cycle_year = gyear - CHINESE_EPOCH_YEAR; in computeChineseFields()
[all …]
DIndianCalendar.java469 int leapMonth, gyear, m; in IndianToJD() local
472 gyear = year + INDIAN_ERA_START; in IndianToJD()
475 if(isGregorianLeapYear(gyear)) { in IndianToJD()
477 start = gregorianToJD(gyear, 2 /* third month in 0 based */, 21); in IndianToJD()
480 start = gregorianToJD(gyear, 2 /* third month in 0 based */, 22); in IndianToJD()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DChineseCalendar.java681 private int winterSolstice(int gyear) { in winterSolstice() argument
683 long cacheValue = winterSolsticeCache.get(gyear); in winterSolstice()
690 long ms = daysToMillis(computeGregorianMonthStart(gyear, DECEMBER) + in winterSolstice()
698 winterSolsticeCache.put(gyear, cacheValue); in winterSolstice()
834 private void computeChineseFields(int days, int gyear, int gmonth, in computeChineseFields() argument
842 int solsticeAfter = winterSolstice(gyear); in computeChineseFields()
844 solsticeBefore = winterSolstice(gyear - 1); in computeChineseFields()
847 solsticeAfter = winterSolstice(gyear + 1); in computeChineseFields()
877 int extended_year = gyear - epochYear; in computeChineseFields()
878 int cycle_year = gyear - CHINESE_EPOCH_YEAR; in computeChineseFields()
[all …]
DIndianCalendar.java440 int leapMonth, gyear, m; in IndianToJD() local
443 gyear = year + INDIAN_ERA_START; in IndianToJD()
446 if(isGregorianLeap(gyear)) { in IndianToJD()
448 start = gregorianToJD(gyear, 3, 21); in IndianToJD()
451 start = gregorianToJD(gyear, 3, 22); in IndianToJD()
/third_party/node/deps/icu-small/source/i18n/
Dchnsecal.cpp338 int32_t gyear = eyear + fEpochYear - 1; // Gregorian year in handleComputeMonthStart() local
339 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
532 int32_t ChineseCalendar::winterSolstice(int32_t gyear) const { in winterSolstice()
535 int32_t cacheValue = CalendarCache::get(&gChineseCalendarWinterSolsticeCache, gyear, status); in winterSolstice()
542 double ms = daysToMillis(Grego::fieldsToDay(gyear, UCAL_DECEMBER, 1)); in winterSolstice()
555 CalendarCache::put(&gChineseCalendarWinterSolsticeCache, gyear, cacheValue, status); in winterSolstice()
683 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, in computeChineseFields() argument
690 int32_t solsticeAfter = winterSolstice(gyear); in computeChineseFields()
692 solsticeBefore = winterSolstice(gyear - 1); in computeChineseFields()
695 solsticeAfter = winterSolstice(gyear + 1); in computeChineseFields()
[all …]
Dindiancal.cpp163 int32_t leapMonth, gyear, m; in IndianToJD() local
166 gyear = year + INDIAN_ERA_START; in IndianToJD()
169 if(isGregorianLeap(gyear)) { in IndianToJD()
171 start = gregorianToJD(gyear, 2 /* The third month in 0 based month */, 21); in IndianToJD()
175 start = gregorianToJD(gyear, 2 /* The third month in 0 based month */, 22); in IndianToJD()
Dchnsecal.h246 virtual int32_t winterSolstice(int32_t gyear) const;
252 virtual void computeChineseFields(int32_t days, int32_t gyear,
254 virtual int32_t newYear(int32_t gyear) const;
/third_party/icu/icu4c/source/i18n/
Dchnsecal.cpp335 int32_t gyear = eyear + fEpochYear - 1; // Gregorian year in handleComputeMonthStart() local
336 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
526 int32_t ChineseCalendar::winterSolstice(int32_t gyear) const { in winterSolstice()
529 int32_t cacheValue = CalendarCache::get(&gChineseCalendarWinterSolsticeCache, gyear, status); in winterSolstice()
536 double ms = daysToMillis(Grego::fieldsToDay(gyear, UCAL_DECEMBER, 1)); in winterSolstice()
549 CalendarCache::put(&gChineseCalendarWinterSolsticeCache, gyear, cacheValue, status); in winterSolstice()
673 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, in computeChineseFields() argument
681 int32_t solsticeAfter = winterSolstice(gyear); in computeChineseFields()
683 solsticeBefore = winterSolstice(gyear - 1); in computeChineseFields()
686 solsticeAfter = winterSolstice(gyear + 1); in computeChineseFields()
[all …]
Dindiancal.cpp163 int32_t leapMonth, gyear, m; in IndianToJD() local
166 gyear = year + INDIAN_ERA_START; in IndianToJD()
169 if(isGregorianLeap(gyear)) { in IndianToJD()
171 start = gregorianToJD(gyear, 2 /* The third month in 0 based month */, 21); in IndianToJD()
175 start = gregorianToJD(gyear, 2 /* The third month in 0 based month */, 22); in IndianToJD()
Dchnsecal.h188 virtual int32_t winterSolstice(int32_t gyear) const;
194 virtual void computeChineseFields(int32_t days, int32_t gyear,
196 virtual int32_t newYear(int32_t gyear) const;
/third_party/skia/third_party/externals/icu/source/i18n/
Dchnsecal.cpp335 int32_t gyear = eyear + fEpochYear - 1; // Gregorian year in handleComputeMonthStart() local
336 int32_t theNewYear = newYear(gyear); in handleComputeMonthStart()
526 int32_t ChineseCalendar::winterSolstice(int32_t gyear) const { in winterSolstice()
529 int32_t cacheValue = CalendarCache::get(&gChineseCalendarWinterSolsticeCache, gyear, status); in winterSolstice()
536 double ms = daysToMillis(Grego::fieldsToDay(gyear, UCAL_DECEMBER, 1)); in winterSolstice()
549 CalendarCache::put(&gChineseCalendarWinterSolsticeCache, gyear, cacheValue, status); in winterSolstice()
673 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth, in computeChineseFields() argument
681 int32_t solsticeAfter = winterSolstice(gyear); in computeChineseFields()
683 solsticeBefore = winterSolstice(gyear - 1); in computeChineseFields()
686 solsticeAfter = winterSolstice(gyear + 1); in computeChineseFields()
[all …]
Dindiancal.cpp163 int32_t leapMonth, gyear, m; in IndianToJD() local
166 gyear = year + INDIAN_ERA_START; in IndianToJD()
169 if(isGregorianLeap(gyear)) { in IndianToJD()
171 start = gregorianToJD(gyear, 2 /* The third month in 0 based month */, 21); in IndianToJD()
175 start = gregorianToJD(gyear, 2 /* The third month in 0 based month */, 22); in IndianToJD()
Dchnsecal.h188 virtual int32_t winterSolstice(int32_t gyear) const;
194 virtual void computeChineseFields(int32_t days, int32_t gyear,
196 virtual int32_t newYear(int32_t gyear) const;