Issue 78226 - Incorrect function results with time at 24:00:00 hours
Summary: Incorrect function results with time at 24:00:00 hours
Status: CLOSED DUPLICATE of issue 26417
Alias: None
Product: Calc
Classification: Application
Component: programming (show other issues)
Version: OOo 2.2
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2007-06-08 11:56 UTC by ltchp
Modified: 2007-08-07 14:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example for the Problem (8.52 KB, text/plain)
2007-06-08 12:00 UTC, ltchp
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ltchp 2007-06-08 11:56:51 UTC
When i use different functions to roken with time, seconds etc. i get 
incorrect results, if some time is over 24 hours. 

For example:

Type in 11:59 an 11:59 in two cells and let is sum. And then let give you the 
hour out of it =HOUR(A3) (in german: =STUNDE(A3) -> It's correct.

Type in 12:01 an 11:59 -> 24:00:00 -> you get 0 as hour

Type in 14:30 an 11:59 -> 26:29:00 -> you get 2 as hour


Cals sets every 24 hours at 0. This is extremly bad, if you have to roken with 
it. I want to sum my training hours. Some time i have more than 24. For 
example 32:24:47. I can sum this up correct, but i can't do further functions. 
For example hour(). I have tried to roken the percent out of it, but therefore 
i get wrong results when i come over 24 hours. I get 400% and so on...

Sorry, i can't describe it better in english. For further questions i try to 
explain it better. Please contact me. 

I have had this problems more times, because i try to make a big spreadsheed 
for the whole year and i make more functions with time. the others i was able 
to resolve by format the cell, but i would have need other formats. I just 
take what makes correct results. Tahnk you!
Comment 1 ltchp 2007-06-08 12:00:05 UTC
Created attachment 45752 [details]
Example for the Problem
Comment 2 helenrussian 2007-07-03 20:07:12 UTC
Hi, ltchp!
OOo should keep full compatibility with Excel here.
function HOUR(A3) is returning values from 0 to 23.
You can resolve your problem by using =ROUNDDOWN(DAYS(A3;0)*24;0) or
=INT(A3*24)
Comment 3 kpalagin 2007-07-03 20:22:38 UTC
This looks like dup of http://www.openoffice.org/issues/show_bug.cgi?id=26417.

ltchp,
please comment.
Comment 4 frank 2007-08-07 14:34:38 UTC
Yes, a double to Issue 26417 and closed as such.

Frank

*** This issue has been marked as a duplicate of 26417 ***
Comment 5 frank 2007-08-07 14:35:00 UTC
closed double