Just download dilami_calendar.h and copy it near your project.
#include <iostream>
#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;
}
Python Dilami Calendar
PHP Dilami Calendar
Arduino Dilami Calendar
.Net Dilami Calendar
تقویم دیلمی