Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.3 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.3 KB

C++ Dilami Calendar

Install

Just download dilami_calendar.h and copy it near your project.

Example

#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;
}

Maybe You Like

Python Dilami Calendar
PHP Dilami Calendar
Arduino Dilami Calendar
.Net Dilami Calendar
تقویم دیلمی