• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

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.

static QString num2heb ( int  num,
bool  includeMillenium 
) [static]

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

const int DAY = 24*HOUR [static]

Definition at line 258 of file kcalendarsystemhebrew.cpp.

const int HOUR = 1080 [static]

Definition at line 257 of file kcalendarsystemhebrew.cpp.

const int WEEK = 7*DAY [static]

Definition at line 259 of file kcalendarsystemhebrew.cpp.

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal