emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ConcreteVitamin <concretevitamin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: How to generate clock report for hours worked each day?
Date: Sat, 23 Sep 2017 20:51:57 +0000	[thread overview]
Message-ID: <CAG2+eogWm2_M3=m4erohgjLxQV657JFh+Dht7UMwVd-_OD2fiA@mail.gmail.com> (raw)

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

org-clock-report is awesome; however, it reports time spent on each task.
Is there any custom command that you use to generate a clock report *showing
hours worked, across tasks, for each day*?

The trouble I've encountered is that, I file my TODO captures under a
file+datetree entry. For example, one TODO task might be filed on Day -2,
but I could be working on it -- i.e., clocking in and out -- on Day -2, -1,
and today. So generating a table naively will just show something like:

#+BEGIN: clocktable :maxlevel 4 :scope file :block thisweek
#+CAPTION: Clock summary at [2017-09-23 Sat 11:48], for week 2017-W38.
| Headline                              | Time      |         |       |       |
|---------------------------------------+-----------+---------+-------+-------|
| *Total time*                          | *1d 0:12* |         |       |       |
|---------------------------------------+-----------+---------+-------+-------|
| 2017                                  | 1d 0:12   |         |       |       |
| \_  2017-09 September                 |           | 1d 0:12 |       |       |
| \_    2017-09-11 Monday               |           |         |  1:23 |       |
| \_      look into AAA BBBB project    |           |         |       |
| \_    2017-09-15 Friday               |           |         |  3:33 |       |
| \_      look into XXX YYYY project    |           |         |       |  3:33 |
#+END:

Note that the second TODO task was filed under 2017-09-15 Friday, which was
the date I entered the task. But really, I might have worked on it on
Friday, Saturday, etc. I just want another command to show how many hours
I've worked on each day, generating a report such as the following:

2017-09-11 Monday     xx hours yy mins worked (across all tasks)
...
2017-09-15 Friday     zz hours tt mins worked (across all tasks)

Thanks in advance.

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

             reply	other threads:[~2017-09-23 20:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-23 20:51 ConcreteVitamin [this message]
2017-09-24  2:04 ` How to generate clock report for hours worked each day? Matt Lundin
2017-09-24  5:28   ` ConcreteVitamin
2017-09-24 14:35     ` Matt Lundin
2017-09-25  3:58       ` ConcreteVitamin
2017-09-25  7:39         ` Eric S Fraga
2017-09-26 18:27           ` ConcreteVitamin
2017-09-27  5:57             ` Eric S Fraga
2017-09-28 23:43               ` ConcreteVitamin
2017-09-29 12:58                 ` Eric S Fraga
2017-10-02  9:17             ` Yasushi SHOJI

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='CAG2+eogWm2_M3=m4erohgjLxQV657JFh+Dht7UMwVd-_OD2fiA@mail.gmail.com' \
    --to=concretevitamin@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).