KDECore
kcalendarsystemhebrew.cpp File Reference
#include "kcalendarsystemhebrew.h"#include "kdebug.h"#include "klocale.h"#include <QtCore/QDate>#include <QtCore/QCharRef>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 260 of file kcalendarsystemhebrew.cpp.
| #define MONTH (DAY+M(12,793)) |
Definition at line 261 of file kcalendarsystemhebrew.cpp.
Function Documentation
| static class h_date* gregorianToHebrew | ( | int | y, | |
| int | m, | |||
| int | d | |||
| ) | [static] |
Definition at line 106 of file kcalendarsystemhebrew.cpp.
| static int heb2num | ( | const QString & | str, | |
| int & | iLength | |||
| ) | [static] |
Definition at line 205 of file kcalendarsystemhebrew.cpp.
| static int hebrewDaysElapsed | ( | int | y | ) | [static] |
For internal use only.
no. of days in y years
Definition at line 267 of file kcalendarsystemhebrew.cpp.
| static class h_date* hebrewToGregorian | ( | int | y, | |
| int | m, | |||
| int | d | |||
| ) | [static] |
Definition at line 55 of file kcalendarsystemhebrew.cpp.
| static bool is_leap_year | ( | int | year | ) | [static] |
Definition at line 330 of file kcalendarsystemhebrew.cpp.
| static int long_cheshvan | ( | int | year | ) | [static] |
For internal use only.
true if long Cheshvan
Definition at line 298 of file kcalendarsystemhebrew.cpp.
Definition at line 158 of file kcalendarsystemhebrew.cpp.
| static int short_kislev | ( | int | year | ) | [static] |
For internal use only.
true if short Kislev
Definition at line 316 of file kcalendarsystemhebrew.cpp.
| static class h_date* toHebrew | ( | const QDate & | date | ) | [static] |
Definition at line 336 of file kcalendarsystemhebrew.cpp.
Variable Documentation
Definition at line 258 of file kcalendarsystemhebrew.cpp.
const int HOUR = 1080 [static] |
Definition at line 257 of file kcalendarsystemhebrew.cpp.
Definition at line 259 of file kcalendarsystemhebrew.cpp.
KDE 4.3 API Reference