emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dave Marquardt <davemarq@us.ibm.com>
To: emacs-orgmode@gnu.org
Subject: Re: Clocktable :formatter to record time in hours or work-days
Date: Wed, 12 Apr 2023 07:51:01 -0500	[thread overview]
Message-ID: <87a5zd462y.fsf@us.ibm.com> (raw)
In-Reply-To: alpine.DEB.2.22.394.2304111502490.201064@shell3.miskatonic.org

William Denton <wtd@pobox.com> writes:

> 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.

I just had to rediscovery this recently. Check `org-duration-format`.

-Dave



  reply	other threads:[~2023-04-12 13:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-11 19:11 Clocktable :formatter to record time in hours or work-days William Denton
2023-04-12 12:51 ` Dave Marquardt [this message]
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=87a5zd462y.fsf@us.ibm.com \
    --to=davemarq@us.ibm.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).