[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Sum clocks into a custom property
From: |
Marcin Borkowski |
Subject: |
Re: [O] Sum clocks into a custom property |
Date: |
Mon, 12 Nov 2018 11:42:53 +0100 |
User-agent: |
mu4e 1.1.0; emacs 27.0.50 |
On 2018-11-12, at 11:35, Leo Alekseyev <address@hidden> wrote:
> I am using org-invoice.el, which expects either CLOCKSUM or WORK properties
> to exist in an item; these properties contain some time duration record in
> HH:MM format.
>
> I can't figure out how to generate those properties from a series of clock
> entries with any built-in user-facing functions, so I want to do it
> programmatically -- I can get the sum of the clock entries
> via (org-clock-sum-current-item), but how do I convert them to HH:MM format
> and insert it as a property?
For converting to hh:mm format, see the `format-seconds' function (built
into Emacs).
Hth,
--
Marcin Borkowski
http://mbork.pl