• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Public Member Functions | List of all members
KCalendarSystemWorld Class Reference

#include <kcalendarsystemworld.h>

Inheritance diagram for KCalendarSystemWorld:
KCalendarSystem

Public Member Functions

 KCalendarSystemWorld (const TDELocale *locale=0)
 
int year (const TQDate &date) const
 
int month (const TQDate &date) const
 
int day (const TQDate &date) const
 
int dayOfWeek (const TQDate &date) const
 
int dayOfYear (const TQDate &date) const
 
bool setYMD (TQDate &date, int y, int m, int d) const
 
TQDate addYears (const TQDate &date, int nyears) const
 
TQDate addMonths (const TQDate &date, int nmonths) const
 
TQDate addDays (const TQDate &date, int ndays) const
 
int monthsInYear (const TQDate &date) const
 
int daysInYear (const TQDate &date) const
 
int daysInMonth (const TQDate &date) const
 
int weeksInYear (int year) const
 
int weekNumber (const TQDate &date, int *yearNum=0) const
 
TQString monthName (const TQDate &date, bool shortName=false) const
 
TQString monthName (int month, int year, bool shortName=false) const
 
TQString monthNamePossessive (const TQDate &date, bool shortName=false) const
 
TQString monthNamePossessive (int month, int year, bool shortName=false) const
 
TQString weekDayName (const TQDate &date, bool shortName=false) const
 
TQString weekDayName (int weekDay, bool shortName=false) const
 
int minValidYear () const
 
int maxValidYear () const
 
int weekDayOfPray () const
 
TQString calendarName () const
 
bool isLunar () const
 
bool isLunisolar () const
 
bool isSolar () const
 
- Public Member Functions inherited from KCalendarSystem
 KCalendarSystem (const TDELocale *locale=0)
 
virtual ~KCalendarSystem ()
 
virtual TQString yearString (const TQDate &pDate, bool bShort) const
 
virtual int yearStringToInteger (const TQString &sNum, int &iLength) const
 
virtual TQString monthString (const TQDate &pDate, bool bShort) const
 
virtual int monthStringToInteger (const TQString &sNum, int &iLength) const
 
virtual TQString dayString (const TQDate &pDate, bool bShort) const
 
virtual int dayStringToInteger (const TQString &sNum, int &iLength) const
 

Additional Inherited Members

- Protected Member Functions inherited from KCalendarSystem
const TDELocale * locale () const
 

Detailed Description

World founding COLODAR type implementation.

Definition at line 30 of file kcalendarsystemworld.h.

Member Function Documentation

TQDate KCalendarSystemWorld::addDays ( const TQDate &  date,
int  ndays 
) const
inlinevirtual

Returns a TQDate object containing a date ndays later.

Parameters
dateThe old date
ndaysThe number of days to add
Returns
The new date

Implements KCalendarSystem.

Definition at line 45 of file kcalendarsystemworld.h.

TQDate KCalendarSystemWorld::addMonths ( const TQDate &  date,
int  nmonths 
) const
inlinevirtual

Returns a TQDate object containing a date nmonths later.

Parameters
dateThe old date
nmonthsThe number of months to add
Returns
The new date

Implements KCalendarSystem.

Definition at line 44 of file kcalendarsystemworld.h.

TQDate KCalendarSystemWorld::addYears ( const TQDate &  date,
int  nyears 
) const
inlinevirtual

Returns a TQDate object containing a date nyears later.

Parameters
dateThe old date
nyearsThe number of years to add
Returns
The new date

Implements KCalendarSystem.

Definition at line 43 of file kcalendarsystemworld.h.

TQString KCalendarSystemWorld::calendarName ( ) const
inlinevirtual

Gets the string representing the calendar.

Implements KCalendarSystem.

Definition at line 65 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::day ( const TQDate &  date) const
inlinevirtual

Gets specific calendar type day number of month for a given date.

Parameters
dategregorian date equivalent to the specific one
Returns
day of the month

Implements KCalendarSystem.

Definition at line 37 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::dayOfWeek ( const TQDate &  date) const
inlinevirtual

Gets specific calendar type number of day of week number for a given date.

Parameters
dategregorian date
Returns
day of week

Implements KCalendarSystem.

Definition at line 38 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::dayOfYear ( const TQDate &  date) const
inlinevirtual

Gets specific calendar type day number of year for a given date.

Parameters
dategregorian date equivalent to the specific one
Returns
day number

Implements KCalendarSystem.

Definition at line 39 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::daysInMonth ( const TQDate &  date) const
inlinevirtual

Gets specific calendar type number of days in month for a given date.

Parameters
dategregorian date
Returns
number of days for month in date

Implements KCalendarSystem.

Definition at line 50 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::daysInYear ( const TQDate &  date) const
inlinevirtual

Gets the number of days in date whose years specified.

Parameters
dateGregorian date equivalent to the specific one
Returns
The number of days in year

Implements KCalendarSystem.

Definition at line 49 of file kcalendarsystemworld.h.

bool KCalendarSystemWorld::isLunar ( ) const
inlinevirtual

Gets if the calendar is lunar based.

Returns
if the calendar is lunar based

Implements KCalendarSystem.

Definition at line 67 of file kcalendarsystemworld.h.

bool KCalendarSystemWorld::isLunisolar ( ) const
inlinevirtual

Gets if the calendar is lunisolar based.

Returns
if the calendar is lunisolar based

Implements KCalendarSystem.

Definition at line 68 of file kcalendarsystemworld.h.

bool KCalendarSystemWorld::isSolar ( ) const
inlinevirtual

Gets if the calendar is solar based.

Returns
if the calendar is solar based

Implements KCalendarSystem.

Definition at line 69 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::maxValidYear ( ) const
inlinevirtual

Gets the maximum year value supported by specific calendar type algorithms (TQDate, 8000)

Returns
maximum year supported

Implements KCalendarSystem.

Definition at line 62 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::minValidYear ( ) const
inlinevirtual

Gets the first year value supported by specific calendar type algorithms.

Returns
first year supported

Implements KCalendarSystem.

Definition at line 61 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::month ( const TQDate &  date) const
virtual

Gets specific calendar type month for a given gregorian date.

Parameters
dategregorian date
Returns
month number

Implements KCalendarSystem.

Definition at line 42 of file kcalendarsystemworld.cpp.

TQString KCalendarSystemWorld::monthName ( const TQDate &  date,
bool  shortName = false 
) const
inlinevirtual

Gets specific calendar type month name for a given gregorian date.

Parameters
dateGregorian date
shortNameSpecifies if the short month name should be used
Returns
The name of the month

Implements KCalendarSystem.

Definition at line 54 of file kcalendarsystemworld.h.

TQString KCalendarSystemWorld::monthName ( int  month,
int  year,
bool  shortName = false 
) const
virtual

Gets specific calendar type month name for a given month number If an invalid month is specified, TQString::null is returned.

Parameters
monthThe month number
yearThe year the month belongs to
shortNameSpecifies if the short month name should be used
Returns
The name of the month

Implements KCalendarSystem.

Definition at line 61 of file kcalendarsystemworld.cpp.

TQString KCalendarSystemWorld::monthNamePossessive ( const TQDate &  date,
bool  shortName = false 
) const
inlinevirtual

Returns a string containing the possessive form of the month name.

("of January", "of February", etc.) It's needed in long format dates in some languages.

Parameters
dateGregorian date
shortNameSpecifies if the short month name should be used
Returns
The possessive form of the name of the month

Implements KCalendarSystem.

Definition at line 56 of file kcalendarsystemworld.h.

TQString KCalendarSystemWorld::monthNamePossessive ( int  month,
int  year,
bool  shortName = false 
) const
inlinevirtual

Returns a string containing the possessive form of the month name.

("of January", "of February", etc.) It's needed in long format dates in some languages. If an invalid month is specified, TQString::null is returned.

Parameters
monthThe month number
yearThe year the month belongs to
shortNameSpecifies if the short month name should be used
Returns
The possessive form of the name of the month

Implements KCalendarSystem.

Definition at line 57 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::monthsInYear ( const TQDate &  date) const
inlinevirtual

Gets specific calendar type number of month for a given year.

Parameters
dateThe date whose year to use
Returns
The number of months in that year

Implements KCalendarSystem.

Definition at line 47 of file kcalendarsystemworld.h.

bool KCalendarSystemWorld::setYMD ( TQDate &  date,
int  y,
int  m,
int  d 
) 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.

Parameters
dateDate to change
yYear
mMonth number
dDay of month
Returns
true if the date is valid; otherwise returns false.

Implements KCalendarSystem.

Definition at line 52 of file kcalendarsystemworld.cpp.

TQString KCalendarSystemWorld::weekDayName ( const TQDate &  date,
bool  shortName = false 
) const
inlinevirtual

Gets specific calendar type week day name.

Parameters
datethe date
shortNameshort or complete day name
Returns
day name

Implements KCalendarSystem.

Definition at line 58 of file kcalendarsystemworld.h.

TQString KCalendarSystemWorld::weekDayName ( int  weekDay,
bool  shortName = false 
) const
virtual

Gets specific calendar type week day name If an invalid week day is specified, TQString::null is returned.

Parameters
weekDaynumber of day in week (1 -> Monday)
shortNameshort or complete day name
Returns
day name

Implements KCalendarSystem.

Definition at line 83 of file kcalendarsystemworld.cpp.

int KCalendarSystemWorld::weekDayOfPray ( ) const
inlinevirtual

Gets the day of the week traditionaly associated with pray.

Returns
day number

Implements KCalendarSystem.

Definition at line 63 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::weekNumber ( const TQDate &  date,
int *  yearNum = 0 
) const
inlinevirtual

Gets specific calendar type week number for a given date.

Parameters
dategregorian date
yearNumThe year the date belongs to
Returns
week number

Implements KCalendarSystem.

Definition at line 52 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::weeksInYear ( int  year) const
inlinevirtual

Gets the number of weeks in a specified year.

Parameters
yearthe year
Returns
number of weeks in year

Implements KCalendarSystem.

Definition at line 51 of file kcalendarsystemworld.h.

int KCalendarSystemWorld::year ( const TQDate &  date) const
virtual

Gets specific calendar type year for a given gregorian date.

Parameters
dategregorian date
Returns
year

Implements KCalendarSystem.

Definition at line 32 of file kcalendarsystemworld.cpp.


The documentation for this class was generated from the following files:
  • kcalendarsystemworld.h
  • kcalendarsystemworld.cpp

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.