A lunar month in traditional numbering: month number (1-12) plus a leap flag. 传统编号的阴历月:月份 (1-12) 加闰月标记。
More...
#include <common.hpp>
A lunar month in traditional numbering: month number (1-12) plus a leap flag. 传统编号的阴历月:月份 (1-12) 加闰月标记。
- Note
- leap_month and the positional indexing of month_lengths speak different month languages — a leap month has no traditional number of its own (it takes its predecessor's number with the leap flag), but occupies its own position. E.g. lunar 2023 (leap 2nd month): position 3 is the leap 2nd month, and the traditional 3rd month is position 4. leap_month 是传统编号,而 month_lengths 按位置序号索引——闰月没有自己的传统编号 (承前一个月的编号加闰标记),但独占一个位置。例:2023 年闰二月,位置 3 = 闰二月, 传统三月 = 位置 4。
◆ operator==()
| auto calendar::lunar::common::TraditionalMonth::operator== |
( |
const TraditionalMonth & | other | ) |
const->bool=default |
|
nodiscarddefault |
◆ is_leap
| bool calendar::lunar::common::TraditionalMonth::is_leap |
◆ month
| uint8_t calendar::lunar::common::TraditionalMonth::month |
The documentation for this struct was generated from the following file: