Expand description
Chinese-like lunar calendars (Chinese, Dangi)
Structs§
- Chinese
- A type implementing
ChineseBased
for the Chinese calendar - Chinese
From Fixed Result - chinese_based_date_from_fixed returns extra things for use in caching
- Dangi
- A type implementing
ChineseBased
for the Dangi (Korean) calendar - Year
Bounds - Marks the bounds of a lunar year
Traits§
- Chinese
Based - The trait ChineseBased is used by Chinese-based calendars to perform computations shared by such calendar. To do so, calendars should:
Functions§
- chinese_
based_ date_ from_ fixed - Get a chinese based date from a fixed date, with the related ISO year
- days_
in_ month - Returns the number of days in the given
month
after the givennew_year
. Also returns the RataDie of the new moon beginning the next month. - days_
in_ prev_ year - Given a new year, calculate the number of days in the previous year
- days_
in_ provided_ year - Calculated the numbers of days in the given year
- days_
until_ month - Given the new year and a month/day pair, calculate the number of days until the first day of the given month
- extended_
from_ iso - Given an ISO year, return the extended year
- fixed_
mid_ year_ from_ year - Get a RataDie in the middle of a year.
- get_
leap_ month_ from_ new_ year - Given that
new_year
is the first day of a leap year, find which month in the year is a leap month. - is_
leap_ year - Whether this year is a leap year
- iso_
from_ extended - Given an extended year, return the ISO year
- last_
month_ day_ in_ year - The last month and day in this year
- month_
days - Returns the number of days in the given (year, month).
- month_
structure_ for_ year - Returns the length of each month in the year, as well as a leap month index (1-indexed) if any.