Function calendrical_calculations::chinese_based::new_year_in_sui
source · pub(crate) fn new_year_in_sui<C: ChineseBased>(
prior_solstice: RataDie,
) -> (RataDie, RataDie)
Expand description
Determines the fixed date of the lunar new year given the start of its corresponding solar year (歲), which is also the winter solstice
Calls to no_major_solar_term
have been inlined for increased efficiency.
Based on functions from Calendrical Calculations by Reingold & Dershowitz. Lisp reference code: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L5370-L5394