New class tools::Duration
Eike Rathke
erack at redhat.com
Mon Jun 19 16:41:48 UTC 2023
Hi,
On Monday, 2023-06-19 14:25:16 +0200, Eike Rathke wrote:
> friend tools::Duration operator -( const DateTime& rDateTime1, const DateTime& rDateTime2 );
>
> (you can also use that temporarily to find code places to change).
Having tried that, it tends to get cumbersome because of things like
include/unotools/calendarwrapper.hxx
setLocalDateTime( rDateTime - aEpochStart )
(one could temporarliy change to
setLocalDateTime( (rDateTime - aEpochStart).GetInDays() )
as well)
or places that use something like
aDateTime - aNullDate
Might find a better approach..
Eike
--
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230619/5048cb7c/attachment.sig>
More information about the LibreOffice
mailing list