From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8Hk1C6bWx2KomwAAbAwnHQ (envelope-from ) for ; Fri, 08 Jul 2022 09:03:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mHTeCqbWx2I2XgEAauVa8A (envelope-from ) for ; Fri, 08 Jul 2022 09:03:02 +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 D73CC2ADF6 for ; Fri, 8 Jul 2022 09:03:01 +0200 (CEST) Received: from localhost ([::1]:46736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9i0y-0002OC-Pm for larch@yhetil.org; Fri, 08 Jul 2022 03:03:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9hz4-0002Mu-DD for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 03:01:03 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:37542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9hyz-00059s-04 for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 03:01:02 -0400 Received: by mail-pl1-x630.google.com with SMTP id f11so3076262plr.4 for ; Fri, 08 Jul 2022 00:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=lXpKScgJoO82eVAMGPDNCllWtLUwmoWIy/cJPoCU1qM=; b=PkK35TdOcxmfjryTbB8UlrKXUzJAue43Me3Vj/CxceYLpFzGmcQ3QF2t18I5S1Nj0P c8ISWp5fGc5FKeMLYVZ3i1tH/see5TCr1Bd6Q49vkFin0hgI7pArxQwT2vizrs3aeut9 RVa+N252WXdAIbE3wMOnQjcq7xQVHk89B24eARWqtusAnJdMkL4gLFGvgSS/fGRmPGSn KJKhNt+zOqSQgQPXxyJiSqmmnW8Htf3sRFljeCKzw79HYg9qHXCtyb+t71cI0l+S4377 7wItc86fZcTUWIpppQ9f+1u3IltbGpM/3KQH34QCyIRh9oYE+yFz4TJFZlBQLcGaecZM blIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=lXpKScgJoO82eVAMGPDNCllWtLUwmoWIy/cJPoCU1qM=; b=OvKDAc43dfmzz3eQEWQ0/8woERIY2vp5gER4n55RyVPTgSMPx6um4TvGfg+wEwDqhd bp0VY3pGJd0tecqcHRsq1FWTr5QKC5xVt0A5cckCvkzf/G5nMIHQE1qGjC97w32z0T4O O3SF7JEePerCIpXwnVrLPsT5YstH1iG4UUNXqcVz8G6kndG8qpWxh4ithjJrOfU+a8pB l8Cv1+4efKoxuz3tt7JGh7HpS9dBjQDsvPb0vkpU6QcBDM+d4+GHGfiM88S2Si+QBZz3 CAFpMb6mLwws0X3E4KTHPOMPDaZhEn80My3OrOkSCgd/iI/gg+dqUDex6o4r6o2M5QYc HpVQ== X-Gm-Message-State: AJIora9ss9eCYu8nZ0XyVx9QntsMHuFJlZ/ViB4ywRdyrsBngTYGRfKa tsTkgI0wqL1Wz18MhLRUfvNHvR/h+aMlIFTPKrE= X-Google-Smtp-Source: AGRyM1vDQyZc8Q1AzM0u2XOr2IvNx52NxyqohwUVV3ngm3WX04NV8rDFMp7+y7zp7O7a3x5ry9LRJA== X-Received: by 2002:a17:90b:1d04:b0:1ec:f898:d863 with SMTP id on4-20020a17090b1d0400b001ecf898d863mr10244031pjb.79.1657263655341; Fri, 08 Jul 2022 00:00:55 -0700 (PDT) Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id t11-20020a17090340cb00b0016c08acde71sm3913067pld.158.2022.07.08.00.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 00:00:54 -0700 (PDT) From: Ihor Radchenko To: Russell Adams Cc: emacs-orgmode@gnu.org Subject: Re: Alternatives to clocking in/out for reporting time In-Reply-To: References: Date: Fri, 08 Jul 2022 15:02:00 +0800 Message-ID: <87let42il3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=yantar92@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657263781; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lXpKScgJoO82eVAMGPDNCllWtLUwmoWIy/cJPoCU1qM=; b=lrL5KW5wAtS8N4jSmea4UVnvXt0AQEowJ7sVW5DVJeY7Obf+DOqc6oYcesKhxfNcfbwSXh S/LE8lX/XNf/i9owr7ESIjALiPuE1g+jwnUomJLQqYjr/CG6VPVwkkupD/GVzwOMsqHnLD jcR0ojzvNQL2oaCd3uJtdRfkWA2xLbLPLGJiR4jD5G/6KIirV/VYVhnMwFsPhsiOWpjNNQ VNbbGKSLU/oIBUVQrjum7PE/oZsvujuYXK6QaZvITA/cpJeom+M2Dc8nG/xe4Ld17jJNCn KuNGB2HzCbR3g66UTo2OQj9bE5unbVke8d4Wp8dxNaMfB+jbVI6cuOxzd5J4uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657263781; a=rsa-sha256; cv=none; b=THs3L2vTt2O0sPW8+JSLnO2wrH/o00WG3vWVEtGMWhj/5f2cq6ZR7rdoqKmnNlb5xdSYLx ta6WoFaq0xcfh49KRwrnLe8JwTMVf95vRXWeiDPDT07Gz/1Hc9+f/ZgOy8qZX0d0WIwMTw WzIPx/SxmI8LX+nHtk+NFMMJzjeSOGZHQXHCdr5ky/AZr+xHE0qlEiYUTGE4VIcp9pmd7E 7phJJ44HoNt08z+LC9jHAReGuPzDaCGAaCao2uEWkDsD+J+EWD2N8MF44sPzicIcnqAw/+ Kq/IOkKdYdUkhbT41ycU+05o/xyi7SnPHx3UzuT+YDB49uzdE4+BDqOIMqvmrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PkK35TdO; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -5.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PkK35TdO; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: D73CC2ADF6 X-Spam-Score: -5.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: QM5FOYyEAGYi Russell Adams writes: > I find Org's clocking to be too detailed, and that it doesn't play > well with dynamically organized hierarchies of notes. I frequently > create and close subtasks, or switch parts of the tree. Clocking each > one is too much overhead, and too granular. I don't need to provide > down to the minute reports of each item. It also doesn't appear to > allow rounding of values, so I still have to adjust the results. > > What I envision is a way to count items in the agenda view to produce > a time report. Counting any inactive timestamp as 15 minutes, where if > a half hour or more is logged I round up to bill the hour. Closed TODO > items should count toward billing that whole hour. Clearly this should > be customized. > > The point is that I'm not worried about accounting time by task, > instead I'm aggregating tasks into accounting by whole hours. > > I'm looking at org-element, and it appears I'd have to do my own > agenda style scan of the whole tree to find items to classify by > hour. While I'm somewhat proficient at elisp, that sounds like a steep > wall to climb. > > Is there an iterative way to review items in an agenda view so I can > do the math to produce a report? You may hook into timestamp insertion/todo-state change functions and accumulate the "time" into headline properties. I did something conceptually similar in https://github.com/yantar92/emacs-config/blob/master/config.org#bonuspenalty-based-time-management Hope it helps. Best, Ihor