<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:albrecht.mueller@astrail.de" title="Albrecht Müller <albrecht.mueller@astrail.de>"> <span class="fn">Albrecht Müller</span></a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Rounding behaviour of YEAR and SECOND function is inconsistent"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127476">bug 127476</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>1
</td>
<td>
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Rounding behaviour of YEAR and SECOND function is inconsistent"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127476#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Rounding behaviour of YEAR and SECOND function is inconsistent"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127476">bug 127476</a>
from <span class="vcard"><a class="email" href="mailto:albrecht.mueller@astrail.de" title="Albrecht Müller <albrecht.mueller@astrail.de>"> <span class="fn">Albrecht Müller</span></a>
</span></b>
<pre>I uploaded two sample files: an .odt and an .xls version. No matter of if I
open the .odt file with the an old 6.0.4.2 Windows version of LibreOffice or a
6.3.5.2 Linux version: both show 0 seconds and year 1999. I used the .xls
version to open it with a Excel 97 version which is more than 20 years old.
Excel showed the same values as LibreOffice but when I reentered the formula
that calculates the year the value changed from 1999 to 2000. So I assume that
the initial values are just those stored in the .xls file and the value 2000
comes from Excel’s own calculation.
My explanation of this behaviour: More than 20 years ago Microsoft engineers
were aware of the fact that when rounding 59.9 seconds to 60 and then mapping
this to 0 seconds a carry should go to the minutes value and this carry may
ripple down to the years position. LibreOffice seems to use no carry in this
case. Consequence: The two programs disagree into which millenium the result
should go.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>