CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
algo3.hpp File Reference
#include <array>
#include <format>
#include <cstdint>
#include "common.hpp"

Classes

 Specialize AlgoMetadata for Algo::ALGO_3. More...

Namespaces

namespace  calendar
namespace  calendar::lunar
namespace  calendar::lunar::algo3
namespace  calendar::lunar::common

Functions

auto calendar::lunar::algo3::calc_lunar_year (int32_t year) -> common::LunarYear
 Calculate the lunar year information for the given year.

Variables

constexpr int32_t calendar::lunar::algo3::START_YEAR
 The first supported lunar year.
constexpr int32_t calendar::lunar::algo3::END_YEAR
 The last supported lunar year.
constexpr std::array< uint32_t,(END_YEAR - START_YEAR+1)> calendar::lunar::algo3::LUNAR_DATA
 The encoded binary data for each lunar year. Info for a year is stored in a uint32_t.
const auto calendar::lunar::algo3::bounds
 The bounds of the algorithm, i.e. the supported range of lunar and Gregorian dates.