Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.07 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.07 KB

tr-holidays

tr-holidays is largely inspired by melike35/holidays-between-2-days, gets two dates from user and lists all holidays between these dates.

For now, this is just a simple example project and lists holidays in Turkey. Other countries may be supported when C++ has a holiday library like python-holidays.

This project could exist thanks to HowardHinnant/date library. I would also like to mention KDE's KHolidays library.

Build

$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./tr-holidays

Usage

📅🎅🥳🎉 Welcome to the Holiday Calendar 🎊🍬🐄🌞
Please write first date as YYYY-MM-DD: 2021-01-01
Please write second date as same format: 2021-05-01
Here are your holidays:
01.01.2021 Fri - New Year's Day
23.04.2021 Fri - National Sovereignty and Children's Day
01.05.2021 Sat - Labour and Solidarity Day
Number Holidays: 3