From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Sum clocks into a custom property Date: Mon, 12 Nov 2018 02:35:05 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000be2e8e057a754128" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM9Yx-0006dF-Hh for emacs-orgmode@gnu.org; Mon, 12 Nov 2018 05:35:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM9Yw-0008H9-HA for emacs-orgmode@gnu.org; Mon, 12 Nov 2018 05:35:23 -0500 Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:50724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gM9Yv-0008EQ-Hv for emacs-orgmode@gnu.org; Mon, 12 Nov 2018 05:35:22 -0500 Received: by mail-it1-x133.google.com with SMTP id k206-v6so11876026ite.0 for ; Mon, 12 Nov 2018 02:35:17 -0800 (PST) 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@gnu.org Sender: "Emacs-orgmode" To: Emacs orgmode --000000000000be2e8e057a754128 Content-Type: text/plain; charset="UTF-8" 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? --000000000000be2e8e057a754128 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am using org-invoice.el, which expects = either CLOCKSUM or WORK properties to exist in an item; these properties co= ntain some time duration record in HH:MM format.

I can&#= 39;t figure out how to generate those properties from a series of clock ent= ries with any built-in user-facing functions, so I want to do it programmat= ically -- I can get the sum of the clock entries via=C2=A0(org-clock-sum-cu= rrent-item), but how do I convert them to HH:MM format and insert it as a p= roperty?=C2=A0
--000000000000be2e8e057a754128--