Skip to content

Chuyển ngày dương sang âm dựa trên ý tưởng của Hồ Ngọc Đức

Notifications You must be signed in to change notification settings

hailiang194/am-duong-lich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

am-duong-lich

Convert Julian day to Lunar day based on the idea of Hồ Ngọc Đức

Installation

cmake -S . -B build <-DBUILD_EXAMPLES=ON>

set BUILD_EXAMPLES ON when you want to build examples

Makefile

Build the library

cd build
make

MSVC

MSBuild.exe build\am-duong-lich.sln

Build examples

MSBuild.exe build\examples\examples.sln

Implement

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

About

Chuyển ngày dương sang âm dựa trên ý tưởng của Hồ Ngọc Đức

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published