[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: calendar_support: kdelibs/kdecore
From: Carlos Moro <cfmoro () correo ! uniovi ! es>
Date: 2002-12-24 20:41:45
[Download RAW message or body]
CVS commit by cfmoro:
Added calendar type functions
M +23 -2 kcalendarsystemgregorian.cpp 1.1.2.10
--- kdelibs/kdecore/kcalendarsystemgregorian.cpp #1.1.2.9:1.1.2.10
@@ -67,7 +67,7 @@ int KCalendarSystemGregorian::weeksInYea
}
-int KCalendarSystemGregorian::weekNumber(const QDate& date) const
+int KCalendarSystemGregorian::weekNumber(const QDate& date, int * yearNum) const
{
- return date.weekNumber();
+ return date.weekNumber(yearNum);
}
@@ -196,4 +196,10 @@ QString KCalendarSystemGregorian::weekDa
}
+QString KCalendarSystemGregorian::weekDayName(const QDate& date, bool shortName) const
+{
+ return weekDayName(dayOfWeek(date), shortName);
+}
+
+
int KCalendarSystemGregorian::dayOfWeek(const QDate& date) const
{
@@ -245,3 +251,18 @@ QString KCalendarSystemGregorian::calend
{
return QString::fromLatin1("gregorian");
+}
+
+bool KCalendarSystemGregorian::isLunar() const
+{
+ return false;
+}
+
+bool KCalendarSystemGregorian::isLunisolar() const
+{
+ return false;
+}
+
+bool KCalendarSystemGregorian::isSolar() const
+{
+ return true;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic