Searched refs:YEAR_START (Results 1 – 5 of 5) sorted by relevance
172 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
59 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()
76 static const int32_t YEAR_START = 1900; // 1900 is where tm_year start variable
29 #define YEAR_START 1900 macro
313 int32_t year = time.tm_year + YEAR_START; in ProcessWeekDayYear()