[Qt5-feedback] [Qt-interest] New Date and Time Features in Qt5?
Andre Somers
andre at familiesomers.nl
Fri May 13 16:28:34 CEST 2011
Hi,
Op Vr, 13 mei, 2011 4:00 pm, schreef John Layt:
> I work on KDE doing localization code including the date/time functions.
> With
> OpenGov and Qt5 coming up we are looking to see if we can get some new
> features we want included in Qt's date and time handling.
>
> As part of that I would like to know what other Qt users are missing and
> would
> like to see supported. The wider the community interest in adding new
> features the more likely they are to get them in.
>
> The general sort of areas we are looking at include:
> * More formatting options
> * More date maths
> * Proper timezone support
> * Alternative calendar systems (Hebrew, Islamic, etc)
I already have a merge request pending for QTimeSpan: a class to represent
a period of time. There was some discussion on it, and one of the things
that came out of that is that some of the functionality that is in there
(also) belongs in QDateTime. That is the ability to add a non-integer
number of a certain unit of time to an existing QDateTime. Currently, that
is implemented in QTimeSpan, but it could be moved to QDateTime (after
which QTimeSpan could just use that functionality).
The class also includes formatting of time periods.
> Just remember that Qt5 is trying to be mostly source compatible with Qt4
> so
> radical overhauls will not be possible, but extending the existing api is
> an
> achievable goal.
>
> Cheers!
>
> John.
>
> P.S. If your wanted feature already has a bug number please include it.
Here you go: http://bugreports.qt.nokia.com/browse/QTBUG-16556
André
More information about the Qt5-feedback
mailing list