kcalendarsystemworld.h
52 int weekNumber( const TQDate& date, int* yearNum = 0 ) const { return date.weekNumber(yearNum); }
54 TQString monthName( const TQDate& date, bool shortName = false ) const { return monthName(month(date), 0, shortName); }
56 TQString monthNamePossessive( const TQDate& date, bool shortName = false ) const { return monthName(date, shortName); }
57 TQString monthNamePossessive( int month, int year, bool shortName = false ) const { return monthName(month, year, shortName); }
58 TQString weekDayName( const TQDate& date, bool shortName = false ) const { return weekDayName(dayOfWeek(date), shortName); }
virtual TQString monthName(int month, int year, bool shortName=false) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified...
int weeksInYear(int year) const
Gets the number of weeks in a specified year.
Definition: kcalendarsystemworld.h:51
int daysInYear(const TQDate &date) const
Gets the number of days in date whose years specified.
Definition: kcalendarsystemworld.h:49
TQDate addMonths(const TQDate &date, int nmonths) const
Returns a TQDate object containing a date nmonths later.
Definition: kcalendarsystemworld.h:44
virtual int year(const TQDate &date) const =0
Gets specific calendar type year for a given gregorian date.
TQDate addDays(const TQDate &date, int ndays) const
Returns a TQDate object containing a date ndays later.
Definition: kcalendarsystemworld.h:45
virtual int dayOfWeek(const TQDate &date) const =0
Gets specific calendar type number of day of week number for a given date.
int daysInMonth(const TQDate &date) const
Gets specific calendar type number of days in month for a given date.
Definition: kcalendarsystemworld.h:50
int weekNumber(const TQDate &date, int *yearNum=0) const
Gets specific calendar type week number for a given date.
Definition: kcalendarsystemworld.h:52
TQString weekDayName(const TQDate &date, bool shortName=false) const
Gets specific calendar type week day name.
Definition: kcalendarsystemworld.h:58
KCalendarSystem(const TDELocale *locale=0)
Constructor of abstract calendar class.
Definition: kcalendarsystem.cpp:36
int monthsInYear(const TQDate &date) const
Gets specific calendar type number of month for a given year.
Definition: kcalendarsystemworld.h:47
CalendarSystem abstract class, default derived kde gregorian class and factory class.
Definition: kcalendarsystem.h:42
TQString monthName(const TQDate &date, bool shortName=false) const
Gets specific calendar type month name for a given gregorian date.
Definition: kcalendarsystemworld.h:54
int weekDayOfPray() const
Gets the day of the week traditionaly associated with pray.
Definition: kcalendarsystemworld.h:63
bool isLunisolar() const
Gets if the calendar is lunisolar based.
Definition: kcalendarsystemworld.h:68
TDELocale provides support for country specific stuff like the national language. ...
Definition: tdelocale.h:123
TQDate addYears(const TQDate &date, int nyears) const
Returns a TQDate object containing a date nyears later.
Definition: kcalendarsystemworld.h:43
int minValidYear() const
Gets the first year value supported by specific calendar type algorithms.
Definition: kcalendarsystemworld.h:61
virtual int month(const TQDate &date) const =0
Gets specific calendar type month for a given gregorian date.
virtual TQString weekDayName(int weekDay, bool shortName=false) const =0
Gets specific calendar type week day name If an invalid week day is specified, TQString::null is retu...
Definition: kcalendarsystem.cpp:119
World founding COLODAR type implementation.
Definition: kcalendarsystemworld.h:30
int dayOfWeek(const TQDate &date) const
Gets specific calendar type number of day of week number for a given date.
Definition: kcalendarsystemworld.h:38
int maxValidYear() const
Gets the maximum year value supported by specific calendar type algorithms (TQDate, 8000)
Definition: kcalendarsystemworld.h:62
TQString monthNamePossessive(const TQDate &date, bool shortName=false) const
Returns a string containing the possessive form of the month name.
Definition: kcalendarsystemworld.h:56
TQString calendarName() const
Gets the string representing the calendar.
Definition: kcalendarsystemworld.h:65
TQString monthNamePossessive(int month, int year, bool shortName=false) const
Returns a string containing the possessive form of the month name.
Definition: kcalendarsystemworld.h:57
int dayOfYear(const TQDate &date) const
Gets specific calendar type day number of year for a given date.
Definition: kcalendarsystemworld.h:39
int day(const TQDate &date) const
Gets specific calendar type day number of month for a given date.
Definition: kcalendarsystemworld.h:37
virtual bool setYMD(TQDate &date, int y, int m, int d) const =0
Changes the date's year, month and day.