• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

Public Member Functions | Protected Member Functions

KCalendarSystemEthiopian Class Reference

#include <kcalendarsystemethiopian_p.h>

Inheritance diagram for KCalendarSystemEthiopian:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KCalendarSystemEthiopian (const KLocale *locale=0)
 KCalendarSystemEthiopian (const KSharedConfig::Ptr config, const KLocale *locale=0)
virtual ~KCalendarSystemEthiopian ()
virtual QDate addDays (const QDate &date, int ndays) const
virtual QDate addMonths (const QDate &date, int nmonths) const
virtual QDate addYears (const QDate &date, int nyears) const
virtual QString calendarType () const
virtual int day (const QDate &date) const
virtual int dayOfWeek (const QDate &date) const
virtual int dayOfYear (const QDate &date) const
virtual int daysInMonth (const QDate &date) const
virtual int daysInWeek (const QDate &date) const
virtual int daysInYear (const QDate &date) const
virtual QString dayString (const QDate &pDate, StringFormat format=LongFormat) const
virtual int dayStringToInteger (const QString &sNum, int &iLength) const
virtual QDate earliestValidDate () const
virtual QDate epoch () const
virtual QString formatDate (const QDate &fromDate, KLocale::DateFormat toFormat=KLocale::LongDate) const
virtual bool isLeapYear (int year) const
virtual bool isLeapYear (const QDate &date) const
virtual bool isLunar () const
virtual bool isLunisolar () const
virtual bool isProleptic () const
virtual bool isSolar () const
virtual bool isValid (int year, int month, int day) const
virtual bool isValid (const QDate &date) const
virtual QDate latestValidDate () const
virtual int month (const QDate &date) const
virtual QString monthName (int month, int year, MonthNameFormat format=LongName) const
virtual QString monthName (const QDate &date, MonthNameFormat format=LongName) const
virtual int monthsInYear (const QDate &date) const
virtual QString monthString (const QDate &pDate, StringFormat format=LongFormat) const
virtual int monthStringToInteger (const QString &sNum, int &iLength) const
virtual QDate readDate (const QString &str, bool *ok=0) const
virtual QDate readDate (const QString &str, KLocale::ReadDateFlags flags, bool *ok=0) const
virtual QDate readDate (const QString &dateString, const QString &dateFormat, bool *ok=0) const
virtual bool setDate (QDate &date, int year, int month, int day) const
virtual bool setYMD (QDate &date, int year, int month, int day) const
virtual QString weekDayName (const QDate &date, WeekDayNameFormat format=LongDayName) const
virtual QString weekDayName (int weekDay, WeekDayNameFormat format=LongDayName) const
virtual int weekDayOfPray () const
virtual int weekNumber (const QDate &date, int *yearNum=0) const
virtual int weeksInYear (const QDate &date) const
virtual int weeksInYear (int year) const
virtual int weekStartDay () const
virtual int year (const QDate &date) const
virtual QString yearString (const QDate &pDate, StringFormat format=LongFormat) const
virtual int yearStringToInteger (const QString &sNum, int &iLength) const

Protected Member Functions

 KCalendarSystemEthiopian (KCalendarSystemEthiopianPrivate &dd, const KSharedConfig::Ptr config=KSharedConfig::Ptr(), const KLocale *locale=0)
virtual bool dateToJulianDay (int year, int month, int day, int &jd) const
virtual bool julianDayToDate (int jd, int &year, int &month, int &day) const

Detailed Description

This is the Ethiopian calendar implementation which is the Coptic calendar but with a differenct Epoch and month/weekday names

license GNU-LGPL v.2 or later

See also:
KLocale,KCalendarSystem
Author:
John Layt <john@layt.net>

Definition at line 38 of file kcalendarsystemethiopian_p.h.


Constructor & Destructor Documentation

KCalendarSystemEthiopian::KCalendarSystemEthiopian ( const KLocale *  locale = 0) [explicit]

Definition at line 61 of file kcalendarsystemethiopian.cpp.

KCalendarSystemEthiopian::KCalendarSystemEthiopian ( const KSharedConfig::Ptr  config,
const KLocale *  locale = 0 
) [explicit]

Definition at line 68 of file kcalendarsystemethiopian.cpp.

KCalendarSystemEthiopian::~KCalendarSystemEthiopian ( ) [virtual]

Definition at line 83 of file kcalendarsystemethiopian.cpp.

KCalendarSystemEthiopian::KCalendarSystemEthiopian ( KCalendarSystemEthiopianPrivate &  dd,
const KSharedConfig::Ptr  config = KSharedConfig::Ptr(),
const KLocale *  locale = 0 
) [protected]

Definition at line 75 of file kcalendarsystemethiopian.cpp.


Member Function Documentation

QDate KCalendarSystemEthiopian::addDays ( const QDate &  date,
int  ndays 
) const [virtual]

Returns a QDate containing a date ndays days later.

Parameters:
dateThe old date
ndaysnumber of days to add
Returns:
The new date, null date if any errors

Reimplemented from KCalendarSystemCoptic.

Definition at line 161 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::addMonths ( const QDate &  date,
int  nmonths 
) const [virtual]

Returns a QDate containing a date nmonths months later.

Parameters:
dateThe old date
nmonthsnumber of months to add
Returns:
The new date, null date if any errors

Reimplemented from KCalendarSystemCoptic.

Definition at line 156 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::addYears ( const QDate &  date,
int  nyears 
) const [virtual]

Returns a QDate containing a date nyears years later.

Parameters:
dateThe old date
nyearsThe number of years to add
Returns:
The new date, null date if any errors

Reimplemented from KCalendarSystemCoptic.

Definition at line 151 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::calendarType ( ) const [virtual]
Deprecated:
use calendarSystem() instead

Returns the calendar system type.

Returns:
type of calendar system

Reimplemented from KCalendarSystemCoptic.

Definition at line 88 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::dateToJulianDay ( int  year,
int  month,
int  day,
int &  jd 
) const [protected, virtual]

Internal method to convert YMD values for this calendar system into a Julian Day number.

All calendar system implementations MUST implement julianDayToDate and dateToJulianDay methods as all other methods can be expressed as functions of these. Does no internal validity checking.

See also:
KCalendarSystem::julianDayToDate
Parameters:
yearyear number
monthmonth number
dayday of month
jdJulian day number returned in this variable
Returns:
true if the date is valid, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 481 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::day ( const QDate &  date) const [virtual]

Returns the day portion of a given date in the current calendar system.

Parameters:
datedate to return day for
Returns:
day of the month, 0 if input date is invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 146 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::dayOfWeek ( const QDate &  date) const [virtual]

Returns the weekday number for the given date.

The weekdays are numbered 1..7 for Monday..Sunday.

This value is not affected by the value of weekStartDay()

Parameters:
datethe date to obtain day from
Returns:
day of week number, -1 if input date not valid

Reimplemented from KCalendarSystemCoptic.

Definition at line 201 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::dayOfYear ( const QDate &  date) const [virtual]

Returns the day number of year for the given date.

The days are numbered 1..daysInYear()

Parameters:
datethe date to obtain day from
Returns:
day of year number, -1 if input date not valid

Reimplemented from KCalendarSystemCoptic.

Definition at line 196 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::daysInMonth ( const QDate &  date) const [virtual]

Returns the number of days in the given month.

Parameters:
datethe date to obtain month from
Returns:
number of days in month, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 186 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::daysInWeek ( const QDate &  date) const [virtual]

Returns the number of days in the given week.

Parameters:
datethe date to obtain week from
Returns:
number of days in week, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 191 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::daysInYear ( const QDate &  date) const [virtual]

Returns the number of days in the given year.

Parameters:
datethe date to obtain year from
Returns:
number of days in year, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 181 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::dayString ( const QDate &  pDate,
StringFormat  format = LongFormat 
) const [virtual]

Converts a date into a day literal.

Parameters:
pDateThe date to convert
formatThe format to return, either short or long
Returns:
The day literal of the date, empty string if any error
See also:
day()

Reimplemented from KCalendarSystemCoptic.

Definition at line 406 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::dayStringToInteger ( const QString &  sNum,
int &  iLength 
) const [virtual]
Deprecated:

Converts a day literal of a part of a string into a integer starting at the beginning of the string

Parameters:
sNumThe string to parse
iLengthThe number of QChars used, and 0 if no valid symbols was found in the string
Returns:
An integer corresponding to the day

Reimplemented from KCalendarSystemCoptic.

Definition at line 421 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::earliestValidDate ( ) const [virtual]

Returns the earliest date valid in this calendar system implementation.

If the calendar system is proleptic then this may be before epoch.

See also:
KCalendarSystem::epoch
KCalendarSystem::latestValidDate
Returns:
date the earliest valid date

Reimplemented from KCalendarSystemCoptic.

Definition at line 100 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::epoch ( ) const [virtual]

Returns a QDate holding the epoch of the calendar system.

Usually YMD of 1/1/1, access the returned QDates method toJulianDay() if you require the actual Julian day number. Note: a particular calendar system implementation may not include the epoch in its supported range, or the calendar system may be proleptic in which case it supports dates before the epoch.

See also:
KCalendarSystem::earliestValidDate
KCalendarSystem::latestValidDate
KCalendarSystem::isProleptic
KCalendarSystem::isValid
Returns:
epoch of calendar system

Reimplemented from KCalendarSystemCoptic.

Definition at line 93 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::formatDate ( const QDate &  fromDate,
KLocale::DateFormat  toFormat = KLocale::LongDate 
) const [virtual]

Returns a string formatted to the current locale's conventions regarding dates.

Uses the calendar system's internal locale set when the instance was created, which ensures that the correct calendar system and locale settings are respected, which would not occur in some cases if using the global locale. Defaults to global locale.

See also:
KLocale::formatDate
Parameters:
fromDatethe date to be formatted
toFormatcategory of date format to use
Returns:
The date as a string

Reimplemented from KCalendarSystemCoptic.

Definition at line 426 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isLeapYear ( int  year) const [virtual]

Returns whether a given year is a leap year.

Input year must be checked for validity in current Calendar System prior to calling, no validity checking performed in this routine, behaviour is undefined in invalid case.

Parameters:
yearthe year to check
Returns:
true if the year is a leap year, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 211 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isLeapYear ( const QDate &  date) const [virtual]

Returns whether a given date falls in a leap year.

Input date must be checked for validity in current Calendar System prior to calling, no validity checking performed in this routine, behaviour is undefined in invalid case.

Parameters:
datethe date to check
Returns:
true if the date falls in a leap year, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 216 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isLunar ( ) const [virtual]

Returns whether the calendar is lunar based.

Returns:
true if the calendar is lunar based, false if not

Reimplemented from KCalendarSystemCoptic.

Definition at line 456 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isLunisolar ( ) const [virtual]

Returns whether the calendar is lunisolar based.

Returns:
true if the calendar is lunisolar based, false if not

Reimplemented from KCalendarSystemCoptic.

Definition at line 461 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isProleptic ( ) const [virtual]

Returns whether the calendar system is proleptic, i.e.

whether dates before the epoch are supported.

See also:
KCalendarSystem::epoch
Returns:
true if the calendar system is proleptic, false if not

Reimplemented from KCalendarSystemCoptic.

Definition at line 471 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isSolar ( ) const [virtual]

Returns whether the calendar is solar based.

Returns:
true if the calendar is solar based, false if not

Reimplemented from KCalendarSystemCoptic.

Definition at line 466 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isValid ( int  year,
int  month,
int  day 
) const [virtual]

Returns whether a given date is valid in this calendar system.

Parameters:
yearthe year portion of the date to check
monththe month portion of the date to check
daythe day portion of the date to check
Returns:
true if the date is valid, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 115 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::isValid ( const QDate &  date) const [virtual]

Returns whether a given date is valid in this calendar system.

Parameters:
datethe date to check
Returns:
true if the date is valid, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 120 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::julianDayToDate ( int  jd,
int &  year,
int &  month,
int &  day 
) const [protected, virtual]

Internal method to convert a Julian Day number into the YMD values for this calendar system.

All calendar system implementations MUST implement julianDayToDate and dateToJulianDay methods as all other methods can be expressed as functions of these. Does no internal validity checking.

See also:
KCalendarSystem::dateToJulianDay
Parameters:
jdJulian day number to convert to date
yearyear number returned in this variable
monthmonth number returned in this variable
dayday of month returned in this variable
Returns:
true if the date is valid, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 476 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::latestValidDate ( ) const [virtual]

Returns the latest date valid in this calendar system implementation.

See also:
KCalendarSystem::epoch
KCalendarSystem::earliestValidDate
Returns:
date the latest valid date

Reimplemented from KCalendarSystemCoptic.

Definition at line 107 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::month ( const QDate &  date) const [virtual]

Returns the month portion of a given date in the current calendar system.

Parameters:
datedate to return month for
Returns:
month of year, 0 if input date is invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 141 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::monthName ( const QDate &  date,
MonthNameFormat  format = LongName 
) const [virtual]

Gets specific calendar type month name for a given date.

Parameters:
datedate to obtain month from
formatspecifies whether the short month name or long month name should be used
Returns:
name of the month, empty string if any error

Reimplemented from KCalendarSystemCoptic.

Definition at line 358 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::monthName ( int  month,
int  year,
MonthNameFormat  format = LongName 
) const [virtual]

Gets specific calendar type month name for a given month number If an invalid month is specified, QString() is returned.

Parameters:
monththe month number
yearthe year the month belongs to
formatspecifies whether the short month name or long month name should be used
Returns:
name of the month, empty string if any error

Reimplemented from KCalendarSystemCoptic.

Definition at line 222 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::monthsInYear ( const QDate &  date) const [virtual]

Returns number of months in the given year.

Parameters:
datethe date to obtain year from
Returns:
number of months in the year, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 166 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::monthString ( const QDate &  pDate,
StringFormat  format = LongFormat 
) const [virtual]

Converts a date into a month literal.

Parameters:
pDateThe date to convert
formatThe format to return, either short or long
Returns:
The month literal of the date, empty string if any error
See also:
month()

Reimplemented from KCalendarSystemCoptic.

Definition at line 401 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::monthStringToInteger ( const QString &  sNum,
int &  iLength 
) const [virtual]
Deprecated:

Converts a month literal of a part of a string into a integer starting at the beginning of the string

Parameters:
sNumThe string to parse
iLengthThe number of QChars used, and 0 if no valid symbols was found in the string
Returns:
An integer corresponding to the month

Reimplemented from KCalendarSystemCoptic.

Definition at line 416 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::readDate ( const QString &  dateString,
const QString &  dateFormat,
bool *  ok = 0 
) const [virtual]

Converts a localized date string to a QDate, using the specified format.

You will usually not want to use this method. Uses teh KDE format standard.

Parameters:
dateStringthe string to convert
dateFormatthe date format to use, in KDE format standard
okif non-null, will be set to true if the date is valid, false if invalid
Returns:
the string converted to a QDate
See also:
formatDate
KLocale::readDate

Reimplemented from KCalendarSystemCoptic.

Definition at line 436 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::readDate ( const QString &  str,
bool *  ok = 0 
) const [virtual]

Converts a localized date string to a QDate.

The bool pointed by ok will be false if the date entered was invalid.

Uses the calendar system's internal locale set when the instance was created, which ensures that the correct calendar system and locale settings are respected, which would not occur in some cases if using the global locale. Defaults to global locale.

See also:
KLocale::readDate
Parameters:
strthe string to convert
okif non-null, will be set to true if the date is valid, false if invalid
Returns:
the string converted to a QDate

Reimplemented from KCalendarSystemCoptic.

Definition at line 431 of file kcalendarsystemethiopian.cpp.

QDate KCalendarSystemEthiopian::readDate ( const QString &  str,
KLocale::ReadDateFlags  flags,
bool *  ok = 0 
) const [virtual]

Converts a localized date string to a QDate.

This method is stricter than readDate(str,&ok): it will either accept a date in full format or a date in short format, depending on flags.

Uses the calendar system's internal locale set when the instance was created, which ensures that the correct calendar system and locale settings are respected, which would not occur in some cases if using the global locale. Defaults to global locale.

See also:
KLocale::readDate
Parameters:
strthe string to convert
flagswhether the date string is to be in full format or in short format
okif non-null, will be set to true if the date is valid, false if invalid
Returns:
the string converted to a QDate

Reimplemented from KCalendarSystemCoptic.

Definition at line 441 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::setDate ( QDate &  date,
int  year,
int  month,
int  day 
) const [virtual]

Changes the date's year, month and day.

The range of the year, month and day depends on which calendar is being used. All years entered are treated literally, i.e. no Y2K translation is applied to years entered in the range 00 to 99. Replaces setYMD.

Parameters:
datedate to change
yearyear
monthmonth number
dayday of month
Returns:
true if the date is valid, false otherwise

Reimplemented from KCalendarSystemCoptic.

Definition at line 125 of file kcalendarsystemethiopian.cpp.

bool KCalendarSystemEthiopian::setYMD ( QDate &  date,
int  year,
int  month,
int  day 
) const [virtual]
Deprecated:

Reimplemented from KCalendarSystemCoptic.

Definition at line 131 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::weekDayName ( int  weekDay,
WeekDayNameFormat  format = LongDayName 
) const [virtual]

Gets specific calendar type week day name.

If an invalid week day is specified, QString() is returned.

Parameters:
weekDaynumber of day in week (Monday = 1, ..., Sunday = 7)
formatspecifies whether the short month name or long month name should be used
Returns:
day name, empty string if any error

Reimplemented from KCalendarSystemCoptic.

Definition at line 364 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::weekDayName ( const QDate &  date,
WeekDayNameFormat  format = LongDayName 
) const [virtual]

Gets specific calendar type week day name.

Parameters:
datethe date
formatspecifies whether the short month name or long month name should be used
Returns:
day name, empty string if any error

Reimplemented from KCalendarSystemCoptic.

Definition at line 391 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::weekDayOfPray ( ) const [virtual]

Returns the day of the week traditionally associated with religious observance for this calendar system.

Note this may not be accurate for the users locale, e.g. Gregorian calendar used in non-Christian countries, in use cases where this could be an issue it is recommended to use KLocale::weekDayOfPray() instead.

Returns:
day number (None = 0, Monday = 1, ..., Sunday = 7)

Reimplemented from KCalendarSystemCoptic.

Definition at line 451 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::weekNumber ( const QDate &  date,
int *  yearNum = 0 
) const [virtual]

Returns the ISO week number for the given date.

ISO 8601 defines the first week of the year as the week containing the first Thursday. See http://en.wikipedia.org/wiki/ISO_8601 and http://en.wikipedia.org/wiki/ISO_week_date

If the date falls in the last week of the previous year or the first week of the following year, then the yearNum returned will be set to the appropriate year.

Parameters:
datethe date to obtain week from
yearNumreturns the year the date belongs to
Returns:
ISO week number, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 206 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::weeksInYear ( int  year) const [virtual]

Returns the number of ISO weeks in the given year.

ISO 8601 defines the first week of the year as the week containing the first Thursday. See http://en.wikipedia.org/wiki/ISO_8601 and http://en.wikipedia.org/wiki/ISO_week_date

Parameters:
yearthe year
Returns:
number of weeks in the year, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 176 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::weeksInYear ( const QDate &  date) const [virtual]

Returns the number of ISO weeks in the given year.

Parameters:
datethe date to obtain year from
Returns:
number of weeks in the year, -1 if input date invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 171 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::weekStartDay ( ) const [virtual]

Use this to determine which day is the first day of the week.

Uses the calendar system's internal locale set when the instance was created, which ensures that the correct calendar system and locale settings are respected, which would not occur in some cases if using the global locale. Defaults to global locale.

See also:
KLocale::weekStartDay
Returns:
an integer (Monday = 1, ..., Sunday = 7)

Reimplemented from KCalendarSystemCoptic.

Definition at line 446 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::year ( const QDate &  date) const [virtual]

Returns the year portion of a given date in the current calendar system.

Parameters:
datedate to return year for
Returns:
year, 0 if input date is invalid

Reimplemented from KCalendarSystemCoptic.

Definition at line 136 of file kcalendarsystemethiopian.cpp.

QString KCalendarSystemEthiopian::yearString ( const QDate &  date,
StringFormat  format = LongFormat 
) const [virtual]

Converts a date into a year literal.

Parameters:
datedate to convert
formatformat to return, either short or long
Returns:
year literal of the date, empty string if any error
See also:
year()

Reimplemented from KCalendarSystemCoptic.

Definition at line 396 of file kcalendarsystemethiopian.cpp.

int KCalendarSystemEthiopian::yearStringToInteger ( const QString &  sNum,
int &  iLength 
) const [virtual]
Deprecated:

Converts a year literal of a part of a string into a integer starting at the beginning of the string

Parameters:
sNumThe string to parse
iLengthThe number of QChars used, and 0 if no valid symbols was found in the string
Returns:
An integer corresponding to the year

Reimplemented from KCalendarSystemCoptic.

Definition at line 411 of file kcalendarsystemethiopian.cpp.


The documentation for this class was generated from the following files:
  • kcalendarsystemethiopian_p.h
  • kcalendarsystemethiopian.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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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