Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Lubos Lunak wrote:
 As much as I don't like it, I can possibly see at least some reason for time 
having 25 hours, but 10 seconds without 20 seconds being 10 seconds (and 
there is actually explicit code to ensure that)?

 Does somebody know why the Time class does either of these and how much would 
break if I fixed these two to be sane?

Reasons for that buried in the past I guess, and maybe not too
useful to try to answer - for the second question, GetHour() should
be easy to grep for, and operator- has at least client code in
editeng/source/misc/svxacorr.cxx, sfx2/source/doc/objcont.cxx, and
automation/source/server/statemnt.cxx

It's unclear to me, how valuable it is to fix-up tools/time.hxx &
all client code, vs. to use e.g.
http://www.boost.org/doc/libs/1_47_0/doc/html/chrono.html when you
need a sane implementation in new code ...

At the very least, documenting your findings in tools.hxx of course
would be great.

HTH,

-- Thorsten

Attachment: pgp86fGDxgE9x.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.