Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)