Date/Time in KF5 / Qt5

Thiago Macieira thiago at kde.org
Wed Jul 6 23:01:13 BST 2011


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.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110707/9c445fc9/attachment.sig>


More information about the kde-core-devel mailing list