Searched refs:LEAP_NUMBER (Results 1 – 2 of 2) sorted by relevance
44 (*date)[WEEKDAY] = Mod(((*date)[DAYS] + LEAP_NUMBER[0]), DAY_PER_WEEK); // weekday in TransferTimeToDate()50 …return year % LEAP_NUMBER[0] == 0 && (year % LEAP_NUMBER[1] != 0 || year % LEAP_NUMBER[2] == 0); … in IsLeap()64 … return DAYS_IN_YEAR * (year - YEAR_NUMBER[0]) + FloorDiv(year - YEAR_NUMBER[1], LEAP_NUMBER[0]) - in GetDaysFromYear()65 FloorDiv(year - YEAR_NUMBER[2], LEAP_NUMBER[1]) + // 2: year index in GetDaysFromYear()66 FloorDiv(year - YEAR_NUMBER[3], LEAP_NUMBER[2]); // 3, 2: year index in GetDaysFromYear()104 int64_t y = static_cast<int64_t>(yoe) + era * LEAP_NUMBER[2]; in GetYearFromDays()105 int64_t doy = doe - (DAYS_IN_YEAR * yoe + yoe / LEAP_NUMBER[0] - in GetYearFromDays()106 yoe / LEAP_NUMBER[1]); // days of year in GetYearFromDays()
51 static constexpr std::array<int, 3> LEAP_NUMBER = {4, 100, 400}; variable