emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Sum clocks into a custom property
@ 2018-11-12 10:35 Leo Alekseyev
  2018-11-12 10:42 ` Marcin Borkowski
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Alekseyev @ 2018-11-12 10:35 UTC (permalink / raw)
  To: Emacs orgmode

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 547 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-12 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-12 10:35 Sum clocks into a custom property Leo Alekseyev
2018-11-12 10:42 ` Marcin Borkowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).