From: Shakthi Kannan <shakthimaan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Obtain CLOCK duration from LOGBOOK drawer using Org Element
Date: Fri, 24 Mar 2017 00:47:35 +0530 [thread overview]
Message-ID: <CABG-yt17f8LFph5XyBa-_4dq755Ey7XAW86AOzkCR4pHWb=4zQ@mail.gmail.com> (raw)
Hi,
How can I obtain the clocked time for each CLOCK entry in the LOGBOOK
drawer using Org Element? Consider the following Org example:
=== Org sample ===
* DONE Task A
CLOSED: [2017-03-20 Mon 12:21]
:PROPERTIES:
:ESTIMATED: 1.5
:ACTUAL:
:OWNER: foo
:END:
:LOGBOOK:
CLOCK: [2017-03-20 Mon 11:45]--[2017-03-20 Mon 12:15] => 0:30
CLOCK: [2017-03-17 Fri 20:15]--[2017-03-17 Fri 21:45] => 1:30
CLOCK: [2017-03-17 Fri 12:05]--[2017-03-17 Fri 13:05] => 1:00
:END:
=== END ===
I would like to obtain "0:30", "1:30" and "1:00" from the LOGBOOK
CLOCK entries, sum them up and update the :ACTUAL: value in the the
PROPERTIES drawer. How can this be done?
Appreciate your inputs in this regard.
Thanks!
SK
--
Shakthi Kannan
http://www.shakthimaan.com
reply other threads:[~2017-03-23 19:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABG-yt17f8LFph5XyBa-_4dq755Ey7XAW86AOzkCR4pHWb=4zQ@mail.gmail.com' \
--to=shakthimaan@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).