KDECore
kcalendarsystemjalali.cpp File Reference
#include <qdatetime.h>
#include <qstring.h>
#include <qstringlist.h>
#include <math.h>
#include <kglobal.h>
#include <klocale.h>
#include <kdebug.h>
#include <stdio.h>
#include "kcalendarsystemjalali.h"
Go to the source code of this file.
Functions | |
static int | Ceil (float number) |
static long | civil_jdn (int year, int month, int day) |
static void | gregorianToJalali (const QDate &date, int *pYear, int *pMonth, int *pDay) |
static SDATE * | gregorianToJalali (int y, int m, int d) |
static int | hndays (int m, int y) |
static int | isJalaliLeap (int year) |
static long | jalali_jdn (int year, int month, int day) |
static SDATE * | jalaliToGregorian (int y, int m, int d) |
static SDATE | jdn_civil (long jdn) |
static SDATE | jdn_jalali (long jdn) |
Variables | |
static const int | gMonthDay [2][13] |
static const int | jMonthDay [2][13] |
Function Documentation
static int Ceil | ( | float | number | ) | [static] |
Definition at line 53 of file kcalendarsystemjalali.cpp.
static long civil_jdn | ( | int | year, | |
int | month, | |||
int | day | |||
) | [static] |
Definition at line 128 of file kcalendarsystemjalali.cpp.
static void gregorianToJalali | ( | const QDate & | date, | |
int * | pYear, | |||
int * | pMonth, | |||
int * | pDay | |||
) | [static] |
Definition at line 172 of file kcalendarsystemjalali.cpp.
static SDATE* gregorianToJalali | ( | int | y, | |
int | m, | |||
int | d | |||
) | [static] |
Definition at line 165 of file kcalendarsystemjalali.cpp.
static int hndays | ( | int | m, | |
int | y | |||
) | [static] |
Definition at line 197 of file kcalendarsystemjalali.cpp.
static int isJalaliLeap | ( | int | year | ) | [static] |
Definition at line 188 of file kcalendarsystemjalali.cpp.
static long jalali_jdn | ( | int | year, | |
int | month, | |||
int | day | |||
) | [static] |
Definition at line 62 of file kcalendarsystemjalali.cpp.
static SDATE* jalaliToGregorian | ( | int | y, | |
int | m, | |||
int | d | |||
) | [static] |
Definition at line 158 of file kcalendarsystemjalali.cpp.
static SDATE jdn_civil | ( | long | jdn | ) | [static] |
Definition at line 137 of file kcalendarsystemjalali.cpp.
static SDATE jdn_jalali | ( | long | jdn | ) | [static] |
Definition at line 84 of file kcalendarsystemjalali.cpp.
Variable Documentation
const int gMonthDay[2][13] [static] |
Initial value:
{ {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, }
Definition at line 36 of file kcalendarsystemjalali.cpp.
const int jMonthDay[2][13] [static] |
Initial value:
{ {0, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29}, {0, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 30}, }
Definition at line 41 of file kcalendarsystemjalali.cpp.