New class tools::Duration

Eike Rathke erack at
Mon Jun 19 16:41:48 UTC 2023


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
  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..


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: <>

More information about the LibreOffice mailing list