Skip to content

Jangal/Dilami-Calendar-C-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
تقویم دیلمی