KDECore
kcalendarsystemhebrew.cpp File Reference
#include <klocale.h>
#include <kdebug.h>
#include "kcalendarsystemhebrew.h"
Go to the source code of this file.
Defines | |
#define | M(h, p) ((h)*HOUR+p) |
#define | MONTH (DAY+M(12,793)) |
Functions | |
static class h_date * | gregorianToHebrew (int y, int m, int d) |
static int | heb2num (const QString &str, int &iLength) |
static int | hebrewDaysElapsed (int y) |
static class h_date * | hebrewToGregorian (int y, int m, int d) |
static bool | is_leap_year (int year) |
static int | long_cheshvan (int year) |
static QString | num2heb (int num, bool includeMillenium) |
static int | short_kislev (int year) |
static class h_date * | toHebrew (const QDate &date) |
Variables | |
static const int | DAY = 24*HOUR |
static const int | HOUR = 1080 |
static const int | WEEK = 7*DAY |
Define Documentation
#define M | ( | h, | |||
p | ) | ((h)*HOUR+p) |
Definition at line 189 of file kcalendarsystemhebrew.cpp.
#define MONTH (DAY+M(12,793)) |
Definition at line 190 of file kcalendarsystemhebrew.cpp.
Function Documentation
static class h_date* gregorianToHebrew | ( | int | y, | |
int | m, | |||
int | d | |||
) | [static] |
Definition at line 95 of file kcalendarsystemhebrew.cpp.
static int heb2num | ( | const QString & | str, | |
int & | iLength | |||
) | [static] |
Definition at line 664 of file kcalendarsystemhebrew.cpp.
static int hebrewDaysElapsed | ( | int | y | ) | [static] |
For internal use only.
no. of days in y years
Definition at line 196 of file kcalendarsystemhebrew.cpp.
static class h_date* hebrewToGregorian | ( | int | y, | |
int | m, | |||
int | d | |||
) | [static] |
Definition at line 45 of file kcalendarsystemhebrew.cpp.
static bool is_leap_year | ( | int | year | ) | [static] |
Definition at line 256 of file kcalendarsystemhebrew.cpp.
static int long_cheshvan | ( | int | year | ) | [static] |
For internal use only.
true if long Cheshvan
Definition at line 224 of file kcalendarsystemhebrew.cpp.
Definition at line 146 of file kcalendarsystemhebrew.cpp.
static int short_kislev | ( | int | year | ) | [static] |
For internal use only.
true if short Kislev
Definition at line 242 of file kcalendarsystemhebrew.cpp.
static class h_date* toHebrew | ( | const QDate & | date | ) | [static] |
Definition at line 273 of file kcalendarsystemhebrew.cpp.
Variable Documentation
Definition at line 187 of file kcalendarsystemhebrew.cpp.
const int HOUR = 1080 [static] |
Definition at line 186 of file kcalendarsystemhebrew.cpp.
Definition at line 188 of file kcalendarsystemhebrew.cpp.