emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-columns--summary-mean-time [BUG]


From: Sławomir Grochowski
Subject: Re: org-columns--summary-mean-time [BUG]
Date: Sat, 14 Oct 2023 21:07:10 +0200

In ex. I want to have an average time when I go to bed.
So on Monday I went to bed at 22:00 and on Tuesday at 02:00. 
So the average time would be midnight 00:00.
But it returns 12:00 which is noon. 



 

On Sat, Oct 14, 2023 at 8:50 PM Ihor Radchenko <yantar92@posteo.net> wrote:
Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:

> I'm not sure if this is a bug or I need to change something?
>
> (org-columns--summary-mean-time '("17:00" "18:00") nil) ;=> "17:30" ; ok
> (org-columns--summary-mean-time '("22:00" "02:00") nil) ;=> "12:00" ;
> should be 00:00
> (org-columns--summary-mean-time '("22:00" "03:00") nil) ;=> "12:30" ;
> should be 00:30

The function computes mean duration. I see nothing wrong.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]