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
make
MSBuild.exe build\am-duong-lich.sln
Build examples
MSBuild.exe build\examples\examples.sln
Call 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 |