From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id dhHnFMgGvWI/jwAAbAwnHQ (envelope-from ) for ; Thu, 30 Jun 2022 04:13:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id NSzPEsgGvWLfmgAAG6o9tA (envelope-from ) for ; Thu, 30 Jun 2022 04:13:28 +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 C06AB39F5A for ; Thu, 30 Jun 2022 04:13:27 +0200 (CEST) Received: from localhost ([::1]:33276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6jgM-0004pK-U0 for larch@yhetil.org; Wed, 29 Jun 2022 22:13:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6jfL-0004mT-6l for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 22:12:23 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:40831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6jfJ-0000lt-4N for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 22:12:22 -0400 Received: by mail-lf1-x133.google.com with SMTP id t25so31156839lfg.7 for ; Wed, 29 Jun 2022 19:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Cswp5A/MPZKyhr6U8FX6iTIxQQVmoW7kW4WCVng5iiM=; b=EMFz+3CzBsK6O7OEjnFiFoHQ9PRjuW0lKI3vWn2B8K/qC40dTCKjvV9bbnJmhUPdYm l8/5YcQI+6S5LamvvGpVGmjdR4aOPEPCS+A3GkB5OUtM0FJRmz8rgrzTTc7roF0/aGX2 3X3OznNkwdXIK5uZyapZCvQmryHdTVLrttPEskEYAEp2ClXAgai9bFSdrr8nMfpf9QZA ev/tKcvTFHsNYW119ye3JdGEC5uN7EGd8NPzFvPdq2Dr+7Pu3vEB4MsGThTIHCPC1wH0 XSghGPDGmrMEVZhvGtP4WHao3al2tKdmcWHrRDcf/U4BDr/J4SMKiNMnzk78JExA5/kH +jrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Cswp5A/MPZKyhr6U8FX6iTIxQQVmoW7kW4WCVng5iiM=; b=CyOfFEX9j8r3sTR8dL4aNxiUVvz3nMRP4tdE5OqkBBnL6fq9icCZvkRCs0EeI6mgT/ h3hHt8AxQkKbkk4b7+gkMASXxCMjLU86TJinwo0o9k93y9x96MLyDqeIpxi/c4+NL9tz NQa8D4ZgAKMdPKruNbXe2WM+KraiFqk5f8bdwQYLgF7LW4XG3+AWvj7PjID4giI/cyJ4 kHAANJjNSOVHTRtyIahOPCzfR0LwgL85oMPjwQd7xmQWnJYTEqfjvHXZSZXortsOfI+1 apqMIGAJOZfMnWje+l50Yf93OEcEu7SLq6g2hG2XUXb7mCAM7/jUCfCsItletTk6yUJ/ RwrQ== X-Gm-Message-State: AJIora87r0fFOw9LBjTQeYTZiFfOGDlKoWv+3xtCkzYMiAs0sWwHOk+O Itf+xkhY4efcoOC0+QzEE17iixCMZY3wFv7gJGAc2nusXfsEbw== X-Google-Smtp-Source: AGRyM1txhdjAXlUhQiss7P8edy6nELeowxZwvpszZeKKhPqMpj/7gEXHxEB0HrZMv/1cnwYYYv6JqH2ynZog+BIfNp4= X-Received: by 2002:a05:6512:2390:b0:481:6f3:2de7 with SMTP id c16-20020a056512239000b0048106f32de7mr4014811lfv.497.1656555139227; Wed, 29 Jun 2022 19:12:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:2432:b0:1f7:d9f7:61a with HTTP; Wed, 29 Jun 2022 19:12:18 -0700 (PDT) In-Reply-To: References: From: Samuel Wales Date: Wed, 29 Jun 2022 19:12:18 -0700 Message-ID: Subject: Re: Alternatives to clocking in/out for reporting time To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=samologist@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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=1656555208; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Cswp5A/MPZKyhr6U8FX6iTIxQQVmoW7kW4WCVng5iiM=; b=rt+6WRlnwxWA1r0vsClL3rmsThEewFSqOSkwrEpAcula7xP7Wzt1rROxVRZh1buqrGgACl CaIDh5b9N5dxpCiXcLKMPHhhOEIvmb4JECmrAlLrDJ/FsOxYvtKQkcvvix2ZCehoRR3+Ea 1WAI2mjl4c9Yvvh+VkqKBe5ePgJCI8WQCqCvvdCfugWZdHnxRNMCsDK9d9Hg6+0Poxvb1b H8WBcNSqV6Tyh1pj8KqbytiKSs2c+tY+COWVM04wwoYi+BEAPf5d818G5yhsicKdyxYLqd 4HzdVv+e8K9UMQY98knXuEwyKSVhyO/pUaptcmG1OzOfP2KhyqJoBiug30tAGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656555208; a=rsa-sha256; cv=none; b=mpaDxrjMoTdrXTYtyu3G/8bj47JDImsAgQ/WctbyVnDXGVUgLlcBaiJyJnZ2UPeMgVXL7j 5TbTslDZdzOEODhUD0p3JxoAlshxc8ztrxg4pRnlB5yKgikgDKjlx5kQTcHA8V7G/H+jea VXDsuAhTgA1xr07MKxr++sKQ2FqXPoHp9Edvq9GWeU+CN87ECCaw2cFAaX5wD49ZJ49d+g a4TQ0Ee2jcQwB43qBG1P4zQkil2nolgnF2Ox2aZp9GyWKXVMNsSWQ/oztwjhVDAbFM+tBA mDmbjP6NDfWXDDHd/MdKBkuCPXHmBM+v9kSjsyH7AcBSX+RGrFkzZ8U/GAwlIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EMFz+3Cz; 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: -3.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EMFz+3Cz; 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: C06AB39F5A X-Spam-Score: -3.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: tTxreS+My89h i said clocked notation, but i meant closed notation. clocked notation, i am not sure of. On 6/29/22, Samuel Wales wrote: > a few things taht are probably all completely obvious or investigated > or irrelevant just in case. just brainstorm. > > do you have everything relevant in the same subtrees? i.e. not > wanting granular, can you search upward for a dominating entry kind of > like git searching upward for the .git dir or so? property drawer > could control what's a dominating entry. you probably thoguht of this > or of having whatever categories as tags or categories in entries > though. in any case that would clock. you could even have clocking > clock into that no matter wher eyou are via some timer in principle. > just a brainstorm. you said dynamic som perhaps there is no > dominating entry for each category though. > > org-time-stamp-rounding-minutes and org-clock-rounding-minutes . i > presume you don't find them relevant. > > reminder: inactive ts in the clocked notation is usualy treated > separately by org [i.e. not hte same type of ts] from bare ia. > > perhaps some kind of text property in the following could categorize > entries and then org can sum them perhaps via some hook you'd > populate. it might be possible in principle to re-create most of the > old agenda L timeline view, but with multiple files instead of a > single file and with a search filter, by using the search agenda view, > as there is some intermediate function, perhaps > org-agenda-before-sorting-filter-function. idk if you neeed multiple > bare ia tses [or of various types of tses perhaps if you do decide you > need more than bare ia] per entry but doing so is probalby possible > merely by having that function add the duplicates. the ts would be > put in the prefix format. you'd have to have custom sorting by > whichever ts you are recording [in the total list] for each entry; idk > if that is straightforward. > > above probably useless but just in case somethinghtere is relevant. > > 6/29/22, Russell Adams wrote: >> I make extensive use of timestamps for billing (timesheet) >> purposes. I'm looking to automate this more, and I find the existing >> clocking system inadequate. I'm hoping someone can point me in the >> right direction. >> >> Today I have log mode enabled so that each time I close a TODO item, >> it records the date and time it was closed. At regular intervals while >> working I add inactive timestamps to my notes. I've mapped that to a >> single key, so it's quite fast. If I switch tasks, have an update, >> made progress I want to note to myself, or leave and return I add an >> inactive timestamp. I have well over 1000 inactive timestamps in my >> current file. >> >> Later I can open my agenda view on the working file, choose my >> timespan (week or month), enable log mode to show when items were >> closed, and then enable inactive timestamps to view all of the >> timestamps. This itemizes all the events organized by time into a >> timeline. >> >> It's fairly straightforward from that timeline to count my hours based >> on the record of where I spent my time. It is unfortunately a very >> manual process. >> >> 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? >> >> ------------------------------------------------------------------ >> Russell Adams RLAdams@AdamsInfoServ.com >> https://www.adamsinfoserv.com/ >> >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com