[Kde-pim] New QTimeZone class for Qt 5.1

Shaheed Haque srhaque at theiet.org
Sat Feb 23 12:11:33 GMT 2013


Hi John,

I'm afraid I don't have time to look at the code much right now, but
the key requirements from my original starting point were to (a) be
able to create new timezones and (b) to convert a QDateTimes from one
timezone to another based on some notion of the names of the timezones
involved.

Both requirements arose from the need to be able to render and
exchange calendaring information
with Exchange, other calendaring systems and Windows, which don't
necessarily use well-known timezone names (assuming we might consider
the Olsen names to be somewhat authoritative).

That was where I started, but I know that DavidJ has done a huge
amount of work beyond that original point, including much deeper
integration with KDEPIM than I ever managed, so he may have thoughts
too...

Thanks, Shaheed
Thanks, Shaheed

On 20 February 2013 23:28, John Layt <jlayt at kde.org> wrote:
> Hi,
>
> For the last few weeks I've been working on a new QTimeZone class to be
> integrated into QDateTime for Qt 5.1.  I'll be putting this up on a Qt Gerrit
> feature branch hopefully by the end of this week so reviews can be completed
> in time for the Qt 5.1 feature freeze.  This is an important requirement for
> KDE Frameworks 5 and kdepimlibs 5 as it allows us to replace any use of
> KDateTime and/or KTimeZone in our api's and code with QDateTime.
>
> The design and implementation of the class is deliberately simple for the 5.1
> release, the api is almost the minimum required based on an analysis of the
> usage of the KTimeZone api outside KDateTime.  It certainly lacks the many
> performance and caching features of KTimeZone.  However at the least it
> provides a sufficient container for QDateTime to be used in our api with no
> loss of time zone details.
>
> I still have a lot of bug and edge case fixes to implement, and tests and docs
> to do, but I think the api and functionality is now complete so I would
> appreciate if people could have a look at it and make any suggestions while
> they're still easy to fix.  Once the code is in gerrit any changes have to go
> through a code review.
>
> [1] http://qt.gitorious.org/~odysseus/qt/odysseus-qtbase/commits/qtimezone
>
> Cheers!
>
> John.
>
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list