<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Date & time functions in StarBasic and Calc return different results"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133389">bug 133389</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>UNCONFIRMED
</td>
<td>NEW
</td>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Date & time functions in StarBasic and Calc return different results"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133389#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Date & time functions in StarBasic and Calc return different results"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133389">bug 133389</a>
from <span class="vcard"><a class="email" href="mailto:erack@redhat.com" title="Eike Rathke <erack@redhat.com>"> <span class="fn">Eike Rathke</span></a>
</span></b>
<pre>The usual confusion of timestamp and duration. The example applies the
non-rounding MINUTE() wall clock / timestamp spreadsheet function on a time
difference or duration value with a slight imprecision.
=A5*24 => 0.166666666388889
=A5*24*60 => 9.99999998333333
I don't know if there is a standard definition (VBA?) for the BASIC Minute()
function, but the spreadsheet MINUTE() function is defined to not round, see
<a href="https://docs.oasis-open.org/office/OpenDocument/v1.3/cs01/part4-formula/OpenDocument-v1.3-cs01-part4-formula.html#MINUTE">https://docs.oasis-open.org/office/OpenDocument/v1.3/cs01/part4-formula/OpenDocument-v1.3-cs01-part4-formula.html#MINUTE</a>
The difference between not-/rounding is also visible by applying the HH:MM:SS
wall clock number format (00:09:59) instead of the correct [HH]:MM:SS duration
format (00:10:00) on A5.</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>