From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4Aq3IR6cymJ7uAAAbAwnHQ (envelope-from ) for ; Sun, 10 Jul 2022 11:30:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id COiYIR6cymIxgQEAauVa8A (envelope-from ) for ; Sun, 10 Jul 2022 11:30:06 +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 407E17A44 for ; Sun, 10 Jul 2022 11:30:06 +0200 (CEST) Received: from localhost ([::1]:45108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oATGP-0007r2-Fq for larch@yhetil.org; Sun, 10 Jul 2022 05:30:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oATFx-0007qd-8z for emacs-orgmode@gnu.org; Sun, 10 Jul 2022 05:29:37 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:45733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oATFv-0007G8-Ke for emacs-orgmode@gnu.org; Sun, 10 Jul 2022 05:29:36 -0400 Received: by mail-pl1-x635.google.com with SMTP id d5so2160241plo.12 for ; Sun, 10 Jul 2022 02:29:34 -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=hxFi4I653vuTw3cqhh8u1x31Xs5S+oUFNQ72RQkzk5M=; b=LW+Lsh5onBQ1NQ30Cg0u1BxrpiThdJBCb1nVtq6qOVM912YwYkxyl+xReH3qg0al/E aE34JKARKyY6WwWl06ct238k5UA2iItPM2AhbZyxTtyR9dqFwlGZsUoYv/+yKzhtFW98 Qzek8c/31kreU3Juaqe1Dhehl6OjR9lH2ry4f+1mjllJE7CJM9cnV7aaiLASjnlw3n+w WM3wbl1FCuqnFIXSxFwPIlEry5G2ia+YSmL3bJsNQMJnKSV3+CXaz3ywuv+k6fDEFnj5 F98bu6BmuNWQ1E4nqwTHzEVo8PbCEXqdBfN0nMFBE+2vynedsHqRI6bW6n2Dz31BQWGX opng== 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=hxFi4I653vuTw3cqhh8u1x31Xs5S+oUFNQ72RQkzk5M=; b=iN2eWlw/8IOqToww6wHuGLZeBTvjeiIBoQ3/Sn17hNp2/6Nxx0pw/POCtBcYmpuF7Y Q1IzRYnUM7PvWhgzzoC6/+DhciJ0Ctat6G2DnQUoQ787yH98c8Pf41E6rkec/EtxRMWV eIFz0D3t0lL8eqMOG3vruut37c3GYdMui9EdtBnYLFLW2o6zBu5WIIjTMdxRLT+wnhv3 oNBUxsc/qEgwnSBK+gT3KyNasqdS7HXLLdG39amXlqJc9PhUYkCUA2rP82s3W31NXliO tYTw2bQP50EPXonCXng3bCRfwx48oRkBcNSlhSTpo1fgSH8bnt3/LcW7xK8mjAm7kfVv 6e2w== X-Gm-Message-State: AJIora+wrxsM0CQNKMfqVgYwPMwBC+bYCIuUfQ/7PViw0Sc2ILjSxIGt fB+Bd+Tk7nkRkZJ0sJe7j98/q5muNx5GRg== X-Google-Smtp-Source: AGRyM1swnSYoqLLudo7gMt07jUgaAFikdMr6Y0NSrZ1S7pCjyTTq6xreRPfwqhEd45LSmErsRsEA4A== X-Received: by 2002:a17:903:1053:b0:16c:38da:97ac with SMTP id f19-20020a170903105300b0016c38da97acmr4761921plc.153.1657445373304; Sun, 10 Jul 2022 02:29:33 -0700 (PDT) Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id bo20-20020a17090b091400b001ef8d2f72fesm2463431pjb.45.2022.07.10.02.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Jul 2022 02:29:32 -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: <87let42il3.fsf@localhost> <871quv9bpm.fsf@localhost> Date: Sun, 10 Jul 2022 17:30:37 +0800 Message-ID: <87a69huxfm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=yantar92@gmail.com; helo=mail-pl1-x635.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=1657445406; 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=hxFi4I653vuTw3cqhh8u1x31Xs5S+oUFNQ72RQkzk5M=; b=EgfHhnH/pPTRPLLxBO1M1FaxNdFwVM3p653VZGGUZWM+DPDqOK/1x4OkotSLMiqLivshyW sMo2cXtSKqt9ANAg3loYfA8nC92T7dpNTCDkCJjcxLxL/O5KL0ln4HU9Bom6YIse5c0xaM HQoOy+BtpNIWq0jAdnbIf8yntsV8l89yqh2Vvm3OwYfzE9J0vL7RvvuqN+9VXSfwYhi62G PBeobvyyZArNxRDDdYsWkC5AAby+1z8TN9TVQWE1WSlOCfRZS/Ir77ctlU/wkAxw95968X Ih3hyMTQ10rNiyv0Mt3hUnrpK2+ETma+OHNi99oSiv6Ag/lbIL/x6TcBHbvmvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657445406; a=rsa-sha256; cv=none; b=sVPxDVWlFJHJ5W4NLR3LQzGgETYtrz3vebjLfQGhgGp4bkZ+QpRDW200bbMIWRA35bOBDG lYrilukqYinEd2JH65icMZDn6D6Fn4AuYgzw1f2DGX1Ns8HF2RiGkkAmBma0bbrwodnTYU 31aPFzdk20bl2iPuzvHqDhbYf5lntuLo9SKXyPSLr64tEeB0RMj9a4wmcSeqQtDUYY6GDd +/lMCScX1WmSnEySRqfctD1D32vFRcrYux6GgkmvN/GjVW9iaYYRyVIBRfFRlF6vlSHeTF VKCd9mz9txMeWgYHtx0sBzB8yISuTT9H8SKDzqI2NW05mlxpxFYRJe1pOmo31A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LW+Lsh5o; 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.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LW+Lsh5o; 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: 407E17A44 X-Spam-Score: -5.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2HV4nEG1mjPg Russell Adams writes: >> Can you then formulate what exactly you want to achieve? >> Do you want to consider only agenda items? All the timestamps in the >> matching items or maybe just some? > > I typically use agenda for the month with logbook view and inactive > timestamps enabled. > > I'd love to iterate over the list of all timestamps from that view. You can. What you need to know about agenda buffers is that various useful information is stored in text properties. Every agenda line, which corresponds to a headline contains a non-nil 'org-hd-marker text property. In log mode, there will also be non-nil 'date and 'time-of-day text properties. You can examine the full list yourself by running M-x describe-text-properties with point at an agenda entry. Hope it helps. Best, Ihor