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
signature.asc
Description: This is a digitally signed message part.