From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [bug?] Computations on efforts expressed in days Date: Wed, 02 May 2012 14:50:08 +0200 Message-ID: <80aa1qu4qn.fsf@somewhere.org> References: <80ipgy77d4.fsf@somewhere.org> <87aa1rkhyy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bastien, Bastien wrote: > Sebastien Vauban writes: > >> I want to compute efforts given in days. As explained by the doc of >> `org-effort-durations', we must add a =d= modifier to tell Org that given >> numbers must be multiplied by 480 (in the case of hours) to get the correct >> number of corresponding minutes. >> >> I did that, but (as shown in the following inlined ECM): >> >> - the computed total for task A is interpreted as hours (4.5 days becomes 4 >> hours 30 minutes). >> >> - the grand computed total for all tasks becomes completely wrong (4:38 >> instead of 4.5 + 0.125 = 4.625 days). >> >> Am I doing something wrong, or forgetting something? > > This should be fixed now. With your patch, the dynamic bloc now becomes: #+BEGIN: columnview :hlines 1 :id "75dd37bf-a15a-4910-89f8-25d481f3e523" :maxlevel 3 | Task | Estim. | |-------------+--------| | * Tasks | 37:00 | | ** TODO A | 36:00 | | *** TODO A1 | 1.5d | | *** TODO A2 | 3d | | ** TODO B | 0.125d | #+END: All the computations are right now -- thanks a lot. However, the table is difficult to read, mixing hours and days (in this case). Shouldn't we be able to give a parameter to the columnview to say in which format we expect the times, and then get *all* values converted to either hours or days (still, in this case)? If that existed, should it be done for Effort only, or extrapolated to all (?) properties? Best regards, Seb -- Sebastien Vauban