Searched refs:leap_year (Results 1 – 4 of 4) sorted by relevance
137 std::int_fast64_t TransOffset(bool leap_year, int jan1_weekday, in TransOffset() argument143 if (!leap_year || days < kMonthOffsets[1][3]) days -= 1; in TransOffset()152 days = kMonthOffsets[leap_year][pt.date.m.month + last_week]; in TransOffset()364 bool leap_year = IsLeap(last_year_); in ExtendTransitions() local372 auto dst_trans_off = TransOffset(leap_year, jan1_weekday, posix.dst_start); in ExtendTransitions()373 auto std_trans_off = TransOffset(leap_year, jan1_weekday, posix.dst_end); in ExtendTransitions()383 jan1_time += kSecsPerYear[leap_year]; in ExtendTransitions()384 jan1_weekday = (jan1_weekday + kDaysPerYear[leap_year]) % 7; in ExtendTransitions()385 leap_year = !leap_year && IsLeap(last_year_ + 1); in ExtendTransitions()
276 int leap_year = ecma_date_in_leap_year (year); in ecma_date_date_from_time() local278 if (day_within_year <= 58 + leap_year) in ecma_date_date_from_time()283 day_within_year -= leap_year; in ecma_date_date_from_time()
37 static int leap_year(const int year) in leap_year() function63 tm->tm_yday += leap_year(y); in determine_days()169 md = mdays[1] + leap_year(tmp.tm_year + 1900); in ossl_asn1_time_to_tm()