Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Jangal/Dilami-Calendar-C-
C++ class to convert Dilami date to Jalali and vice versa
https://github.com/Jangal/Dilami-Calendar-C-
calendar caspian date daylami deylami dilami gilaki iran jalali
Last synced: about 1 month ago
JSON representation
C++ class to convert Dilami date to Jalali and vice versa
- Host: GitHub
- URL: https://github.com/Jangal/Dilami-Calendar-C-
- Owner: Jangal
- License: gpl-3.0
- Created: 2020-02-13T02:58:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T04:49:08.000Z (over 3 years ago)
- Last Synced: 2024-08-03T18:21:04.972Z (5 months ago)
- Topics: calendar, caspian, date, daylami, deylami, dilami, gilaki, iran, jalali
- Language: C++
- Homepage: http://giltime.ir
- Size: 41 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Dilami Calendar
## Install
Just download [dilami_calendar.h](https://github.com/LordArma/Dilami-Calendar-C-/blob/master/dilami_calendar.h "dilami_calendar.cpp") and copy it near your project.
## Example
```C++
#include
#include "dilami_calendar.h"using namespace std;
int main(){
DilamiCalendar dc(1398, 12, 2);
cout << "Dilami Day: " << dc.getDilamiDay() << endl;
cout << "Dilami Month: " << dc.getDilamiMonth() << endl;
cout << "Dilami Year: " << dc.getDilamiYear() << endl;
cout << endl;cout << "Is " << dc.getDilamiYear() << " leap year? " << endl;
if (dc.isLeap()){
cout << "Yes!" << endl;
}
else{
cout << "No!" << endl;
}
cout << endl;cout << "Jalali Day: " << dc.getJalaliDay() << endl;
cout << "Jalali Month: " << dc.getJalaliMonth() << endl;
cout << "Jalali Year: " << dc.getJalaliYear() << endl;
cout << endl;return 0;
}```
## Maybe You Like
[Python Dilami Calendar](https://github.com/Jangal/python-dilami-calendar)
[PHP Dilami Calendar](https://github.com/Jangal/php-dilami-calendar)
[Arduino Dilami Calendar](https://github.com/LordArma/Dilami-Calendar-Arduino)
[.Net Dilami Calendar](https://github.com/Jangal/Dilami-Calendar-.Net)
[تقویم دیلمی](http://giltime.ir)