Date/Time in KF5 / Qt5

David Jarvie djarvie at kde.org
Wed Jul 6 21:18:17 BST 2011


On Wednesday 06 July 2011 21:10:06 Thiago Macieira wrote:
> Em Wednesday, 6 de July de 2011, às 20:54:54, David Jarvie escreveu:
> > > Duration is simply the number of seconds or milliseconds between two
> > > dates,  appropriately given in their universal time. So duration is not
> > > affected by daylight savings.
> > 
> > Duration must record whether it was specified in terms of
> > hours/minutes/seconds, or days/weeks/whatever so that daylight savings
> > changes can be taken into account when calculating the end time of a
> > duration, given a start time.
> > 
> > If the duration class provides methods to calculate the end time, given a
> > start time, then it must take account of daylight savings changes.
> > 
> > See kdepimlibs/kcalcore/duration.h for example.
> 
> That's not what QTimeSpan is supposed to be. It's simply a quantity of 
> seconds.

Ok. Being more limited, it won't be a suitable replacement for KCalCore::Duration.

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110706/e242dd30/attachment.sig>


More information about the kde-core-devel mailing list