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

Generate lunar-month metadata after a JDE(TT). 生成给定 JDE(TT) 后的阴历月元数据。 More...

#include <algo2.hpp>

Public Member Functions

 LunarMonthGenerator (const double start_jde)
auto next () -> LunarMonth
 Get the metadata of the next lunar month.
auto peek () -> LunarMonth
 Peek the metadata of the next lunar month, without advancing.

Detailed Description

Generate lunar-month metadata after a JDE(TT). 生成给定 JDE(TT) 后的阴历月元数据。

Note
Month membership compares UTC+8 civil dates, not instants. 归月比较 UTC+8 日期,不比较时刻。
peek may assemble and cache a month. The new moon ending that month and the first Jieqi on or after its ending UTC+8 date remain pending in their generators. peek 可计算并缓存整月;月末的朔,以及月末 UTC+8 日期当天或之后的第一个节气,仍留在各自生成器中。

Constructor & Destructor Documentation

◆ LunarMonthGenerator()

calendar::lunar::algo2::LunarMonthGenerator::LunarMonthGenerator ( const double start_jde)
inlineexplicit

Member Function Documentation

◆ next()

auto calendar::lunar::algo2::LunarMonthGenerator::next ( ) ->LunarMonth
inlinenodiscard

Get the metadata of the next lunar month.

◆ peek()

auto calendar::lunar::algo2::LunarMonthGenerator::peek ( ) ->LunarMonth
inlinenodiscard

Peek the metadata of the next lunar month, without advancing.


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