Date/Time in KF5 / Qt5

David Jarvie djarvie at kde.org
Thu Jul 7 01:16:48 BST 2011


On Wednesday 06 July 2011 23:01:13 Thiago Macieira wrote:
> Em Wednesday, 6 de July de 2011, às 22:54:39, David Jarvie escreveu:
> > I've added a comment to the merge request suggesting that instead of a
> > reference date/time, the units in which the time span was specified should
> > be stored in the class. That way, daylight time changes could be catered
> > for easily (by external classes), and also time spans of months or years
> > would work intuitively when applied to any start date. Basically, I think
> > that the class has taken the wrong approach, and could be made much more
> > generally useful with a simple change in the way it does things.
> 
> I think the class is fine. It was supposed to be a glorified way of storing a 
> qint64 milliseconds and converting from that to a count of days, hours, 
> minutes and seconds.
> 
> This class was added so that people could format their timespans.

With a slightly different approach, it could be more versatile, and still fulfil its current aims as well.

-- 
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/20110707/1314dbfe/attachment.sig>


More information about the kde-core-devel mailing list