emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <wtd@pobox.com>
To: emacs-orgmode@gnu.org
Subject: Clocktable :formatter to record time in hours or work-days
Date: Tue, 11 Apr 2023 15:11:55 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2304111502490.201064@shell3.miskatonic.org> (raw)

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

I've been clocking in and out of a project for a few months and now it's over. 
I tagged each entry with "search", so a brief clocktable report looks like this:

#+BEGIN: clocktable :maxlevel 1 :scope file :tags t :match "search"
#+CAPTION: Clock summary at [2023-04-11 Tue 13:48]
| Tags | Headline          |    Time |
|------+-------------------+---------|
|      | Total time        | 4d 6:23 |
|------+-------------------+---------|
|      | 2022-09 September |    0:38 |
|      | 2022-10 October   |    2:46 |
|      | 2022-11 November  |    7:41 |
|      | 2022-12 December  |   10:41 |
|      | 2023-01 January   |   10:16 |
|      | 2023-02 February  | 1d 3:56 |
|      | 2023-03 March     | 1d 3:47 |
|      | 2023-04 April     |   14:38 |
#+END

How could I format the Time column in hours?  How could I format it to hours/8, 
rounded, to represent work-days?  I only want this formatting for this table, I 
have other clocktables in the same file I don't want to change.

I've read about clocktables and the :formatter option, which I assume is what 
will do it, but I can't find any helpful examples so I'm stuck.


Thanks for any help,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 422.29 ppm (Mauna Loa Observatory, 2023-04-10)

             reply	other threads:[~2023-04-11 19:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-11 19:11 William Denton [this message]
2023-04-12 12:51 ` Clocktable :formatter to record time in hours or work-days Dave Marquardt
2023-04-12 15:09 ` Dr. Arne Babenhauserheide

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=alpine.DEB.2.22.394.2304111502490.201064@shell3.miskatonic.org \
    --to=wtd@pobox.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).