From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uOZVC32xNmSuSQAASxT56A (envelope-from ) for ; Wed, 12 Apr 2023 15:26:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WMdIC32xNmRCZgAA9RJhRA (envelope-from ) for ; Wed, 12 Apr 2023 15:26:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC8F51D044 for ; Wed, 12 Apr 2023 15:26:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmZwt-0004yb-8v; Wed, 12 Apr 2023 08:51:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmZwU-0004GX-NN for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 08:51:19 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmZwT-0001Bn-2N for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 08:51:18 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pmZwP-0006Hd-TE for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 14:51:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Dave Marquardt Subject: Re: Clocktable :formatter to record time in hours or work-days Date: Wed, 12 Apr 2023 07:51:01 -0500 Message-ID: <87a5zd462y.fsf@us.ibm.com> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cancel-Lock: sha1:6GKyGjsHzUrfQwXrjxMXJYB6O34= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681305981; a=rsa-sha256; cv=none; b=TlkLdfkYsOGDK7x1EXZo2RZkcHQvDjSFKx58DSbiySVhWLF/DUG67oTczR/XU2ebJpJZr5 1iuWvk1sHaPBGG2x0w4IDYhpH2jZaggiOWN4IwXkENMcGIG7akwiRKVeWu44JdE+p1MHu2 N9p3cOxKsMGoMjZBrtD6aRk4y0t4vtElPCRORuszwjg1lX3PSigk37x2nbv4+LKY8iXqXJ gKoDziUROx6y8R0XM7o/2F3RctRAR4Ox+3ZFiNMk2MPG8zFjQLWyuKMurLvuylthCUNRIS ijXW0Et1/5+ppX/weW5i+vJBEU1y6kfC4CriuZ6zwsEsfaPtX3hubI8n7UtMVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=ibm.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681305981; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FV+XmgMhM0voGqtMXPbhK4JXhOqzNWceITJJFqF/XHM=; b=c/DBrbztEfdP43Cw16yAi19+xlWT9YYcSNkxeLgcVYl1jv7/4FowfFACaCUQuZFGNt/4uw RHhLXREASDUghG3gBwMOgwOTBlj1cbOdby6oijaf7Sx1iTi+UGUaKCoSO9N3DFwmyzpd1P PpQRbOd4J+tAQNdKF4eb8U/CtoJx98G8zPV8wjOGkahkuQ20CGi6zaprPnDeJZRIP6URBr T+KoYIjnaMVICGRqNF03sZCgVQU6IZBB40sxtJBncO4ZV8njBEvVLBI7YzLnsQd8tDD/KI tRK4EMVNk/we8ncSOBPDm5l4lvJKY6sNaYrofyL6zWZ3zvvs6SduwrPjWj1wXA== X-Migadu-Queue-Id: EC8F51D044 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=ibm.com (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 2.18 X-Spam-Score: 2.18 X-TUID: qB+Ol2IWyvyh William Denton 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