CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
calendar::lunar::common::LunarYear Struct Reference

Information of the lunar year. 阴历年信息。 More...

#include <common.hpp>

Public Attributes

year_month_day date_of_first_day
 The date of the first day of the lunar year in gregorian calendar. 本阴历年第一天对应的公历日期。
uint8_t leap_month
 The month of the leap month (1 <= leap_month <= 12). If 0, there is no leap month. 闰月的月份 (1-12),如果为 0 则没有闰月。
std::vector< uint32_t > month_lengths
 The number of days in all months in the lunar year. There are 12 elements if there is no leap year, otherwise there are 13 elements. 本阴历年每个月的天数。 如果没有闰月,那么有 12 个元素;如果有闰月,那么有 13 个元素。

Detailed Description

Information of the lunar year. 阴历年信息。

Note
Gregorian dates use the basis of the algorithm that produced this record; see algo1.hpp, algo2.hpp, and algo3.hpp. 此记录中的公历日期沿用生成它的算法所采用的 日期基准;参见 algo1.hpp、algo2.hpp 和 algo3.hpp。

Member Data Documentation

◆ date_of_first_day

year_month_day calendar::lunar::common::LunarYear::date_of_first_day

The date of the first day of the lunar year in gregorian calendar. 本阴历年第一天对应的公历日期。

◆ leap_month

uint8_t calendar::lunar::common::LunarYear::leap_month

The month of the leap month (1 <= leap_month <= 12). If 0, there is no leap month. 闰月的月份 (1-12),如果为 0 则没有闰月。

◆ month_lengths

std::vector<uint32_t> calendar::lunar::common::LunarYear::month_lengths

The number of days in all months in the lunar year. There are 12 elements if there is no leap year, otherwise there are 13 elements. 本阴历年每个月的天数。 如果没有闰月,那么有 12 个元素;如果有闰月,那么有 13 个元素。


The documentation for this struct was generated from the following file: