Convert Julian day to Lunar day based on the idea of Hồ Ngọc Đức
cmake -S . -B build <-DBUILD_EXAMPLES=ON>set BUILD_EXAMPLES ON when you want to build examples
Build the library
cd build
makeMSBuild.exe build\am-duong-lich.slnBuild examples
MSBuild.exe build\examples\examples.slnCall this function
std::array<int, 4> convertToLunarCalendar(const int& dd, const int& mm, const int& yyyy, const double& timezones)Suppose you want to get Vietnamese lunar day of June 7 2022
auto lunar = convertToLunarCalendar(7, 6, 2022, 7.0);lunar is a array with
| Index | Value |
|---|---|
| 0 | Lunar day |
| 1 | Lunar month |
| 2 | Lunar year |
| 3 | is lunar leap day |