Home
last modified time | relevance | path

Searched refs:YEAR_START (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_data.h172 if (lunarYear >= YEAR_START + LUNAR_INFO_SIZE) { in GetLunarLeapMonth()
175 … uint32_t leapMonth = LUNAR_INFO[lunarYear - YEAR_START] & 0xf; // use 0xf to get leap month info in GetLunarLeapMonth()
181 if (lunarYear >= YEAR_START - 1 + LUNAR_INFO_SIZE) { in GetLunarLeapDays()
184 …return GetLunarLeapMonth(lunarYear) > 0 ? ((LUNAR_INFO[lunarYear - YEAR_START + 1] & 0xf) == 0xf ?… in GetLunarLeapDays()
190 if (lunarYear >= YEAR_START + LUNAR_INFO_SIZE) { in GetLunarYearDays()
195 totalDays += ((LUNAR_INFO[lunarYear - YEAR_START] & i) != 0) ? 1 : 0; in GetLunarYearDays()
203 if (lunarYear >= YEAR_START + LUNAR_INFO_SIZE) { in GetLunarMonthDays()
208 … return ((LUNAR_INFO[lunarYear - YEAR_START] & (0x10000u >> (month % MAX_MONTH))) != 0) ? 30 : 29; in GetLunarMonthDays()
212 static constexpr uint32_t YEAR_START = 1897; // start year reference with LUNAR_INFO
/ohos5.0/base/global/i18n/frameworks/intl/src/
H A Dholiday_manager.cpp59 items[i].year += YEAR_START; in HolidayManager()
88 int32_t year = timObj->tm_year + YEAR_START; in IsHoliday()
122 int32_t realYear = timObj->tm_year + YEAR_START; in GetHolidayInfoItemArray()
/ohos5.0/base/global/i18n/frameworks/intl/include/
H A Dholiday_manager.h76 static const int32_t YEAR_START = 1900; // 1900 is where tm_year start variable
/ohos5.0/base/global/i18n_lite/frameworks/i18n/include/
H A Ddate_time_format_impl.h29 #define YEAR_START 1900 macro
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/
H A Ddate_time_format_impl.cpp313 int32_t year = time.tm_year + YEAR_START; in ProcessWeekDayYear()