From kde-pim Tue Feb 26 01:06:53 2002 From: Viktor Rosenfeld Date: Tue, 26 Feb 2002 01:06:53 +0000 To: kde-pim Subject: Re: [Kde-pim] About non-gregorian calendar systems X-MARC-Message: https://marc.info/?l=kde-pim&m=101468577421735 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--BOKacYhQ+x31HxR3" --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Cornelius Schumacher wrote: > Now to the technical problems: I don't think that it helps very much to= =20 > implement specific Date classes. A Date object should represent a=20 > certain day, regardless of the calendar system and QDate is perfect for= =20 > this purpose. >=20 > The problem is that each calendar system has its own view of how long a= =20 > month is, how many months belong to a year, what a week is, how special= =20 > days like holidays are calculated. In fact, supporting different=20 > calendar systems is not a problem of internal represenation of a date,=20 > but a problem of how calendars are displayed. I don't have a lot to say, but I agree with all that is sad in the above two paragraphs and the rest of the mail. Adding different date classes for different calenders, is IMHO not a good idea at all. This should be handled outside of QDate. A generic calender class, which uses a QDate as the date representation and a CalenderSystem subclass as it's calender conversion routine, sounds much better and more flexible to me. One still has the bonus, that there is only one calender class which can be extended to all kinds of calenders, only by writing a new conversion class. Ciao, Viktor --=20 Viktor Rosenfeld WWW: http://www.informatik.hu-berlin.de/~rosenfel/ --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8et+tkWI06CMxQ0ARAgPLAKC0zk+tAfdGNCTcuBY0s2UQyoe8vQCfU229 B9ZnEY4LDbSmkOSy+0y38wo= =4+kX -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3-- _______________________________________________ kde-pim mailing list kde-pim@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/