From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 cFAnLEOnM2TbFAEASxT56A (envelope-from ) for ; Mon, 10 Apr 2023 08:05:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WPlQK0OnM2QJFwEAG6o9tA (envelope-from ) for ; Mon, 10 Apr 2023 08:05:55 +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 AD54AD5AD for ; Mon, 10 Apr 2023 08:05:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plkeE-00021P-4V; Mon, 10 Apr 2023 02:05:02 -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 1plkeC-00020t-1o for emacs-orgmode@gnu.org; Mon, 10 Apr 2023 02:05:00 -0400 Received: from mailbackend.panix.com ([166.84.1.89]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plke9-0001rA-SZ for emacs-orgmode@gnu.org; Mon, 10 Apr 2023 02:04:59 -0400 Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mailbackend.panix.com (Postfix) with ESMTP id 4Pvz2w3xB3z44bp; Mon, 10 Apr 2023 02:04:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1681106696; bh=opqHf83kUOZKvqu52nbT6D0zw2DrECdf6rtcWpjBWK0=; h=Date:From:To:Subject:In-Reply-To:References; b=gkLOaAE5L8oTlNSspdVX04AMmdwRGdE/QHHf9fX9HiI4WPvk6Op+rpMK/1LRLs6CI MbrjwLgeqyroCWQzl3r2FnqwvFD+3icRyksJLfdcmloTBenVZvlW+GYH/5uP4Vgoni FY6IiZ+0htKx8wUdLDHvJlTUmh4UcaQt9ag4cNIA= Received: by panix1.panix.com (Postfix, from userid 20712) id 4Pvz2w3qF8zcbc; Mon, 10 Apr 2023 02:04:56 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by panix1.panix.com (Postfix) with ESMTP id 4Pvz2w3Yb9zcbP; Mon, 10 Apr 2023 02:04:56 -0400 (EDT) Date: Mon, 10 Apr 2023 02:04:56 -0400 From: Jude DaShiell To: Marcin Borkowski , Org-Mode mailing list Subject: Re: What is a week? In-Reply-To: <87fs981izf.fsf@mbork.pl> Message-ID: References: <87h6to1ka7.fsf@mbork.pl> <87fs981izf.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=166.84.1.89; envelope-from=jdashiel@panix.com; helo=mailbackend.panix.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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681106755; a=rsa-sha256; cv=none; b=iIFVuWUQKkIK3sZ2ATPNccXeYVyYGEg3cjvOmj9xsJ95jIgENO1LeNj4IRYPFY6N2oWbVu LY36Zf2j9vMO2+E/Q/RW9n9PwINm7WwK3MCtOL6i0aeCfe/58sqLcXLGa+3M/uozQX3tU3 pGijBpWod8rd1kuXGrcD9h9Wwn2I5oPdpcOQjtwDcI0nyngxl7JJvBxUA4wbkxmH+JZgrL 2dSpbbSP/LIn/88qAJtKE9lCHCEgeka/k2M+OFRtaCpsqgAstvTAXlM2Hyd6c4x+cuJ3M5 HpyizkgyFoz2PNjXtBuJucEAPsYgh4yBwnsTlkLo9qvGRkBDBwqlugLsMQMn/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=panix.com header.s=panix header.b=gkLOaAE5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=panix.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681106755; 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=0Tsv091cX1XYAs8MyDrNTBeKSCcWWnCskOP2csZ/5ss=; b=h9slcDyAj2eTFq1Wojuc1foLUaKX9dpJ7mf38ekcgCrXPWT/ykqSrBpa1NtwZfvKHWUN4y GvY6g5XVzdhyHyWnBS2Cx75HziuWd5NaE0vnI7uWg4KbVVxLMc6JXM8LPmuMst+GieRloM 1lZghqO7m3wY1EMPC3at2YTGQvGsf90ReDe7/Dl8ubi419IKvIa/gRxeS7nrhYKC87tOq5 GwnRtOJHI4hG8eQsDGhBiKmJ5BCZP+uZm0Frph0N9KyQdSZcRE95x2fIRULMytmPLY1Rhl PTANKc7A6BsbmHoVwE1qUaEKqL6byUYgY/ihJEvdfxgpJusjH8ils7qC0CFy7A== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=panix.com header.s=panix header.b=gkLOaAE5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=panix.com (policy=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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.72 X-Spam-Score: -1.72 X-Migadu-Queue-Id: AD54AD5AD X-TUID: FrLkki+c5Psg One of the iso standards has weeks starting on Monday. -- Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940. On Mon, 10 Apr 2023, Marcin Borkowski wrote: > > On 2023-04-10, at 05:35, Marcin Borkowski wrote: > > > Hi fellow Orgers, > > > > I'm trying to wrap my head around the notion of the week, for the > > purpose of using weekly clock tables. > > > > Assume it's Sunday. I create a clock table with :wstart 0 and > > thisweek - and apparently my clock table starts 7 days ago. > > > > Now it's Monday. I create a clock table with :wstart 1 and thisweek - > > and my clock table starts today. > > > > What is the logic behind it? > > To clarify: I understand that the reason is the `if' from this line from > `org-clock.el': > > (setq diff (+ (* -7 shift) (if (= dow 0) (- 7 ws) (- dow ws))) > > (introduced ~10 years ago!). But why is it coded this way? > > Best, > >