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 mbd7NTRtNWRhagEASxT56A (envelope-from ) for ; Tue, 11 Apr 2023 16:22:44 +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 oPSBNDRtNWSNDQEA9RJhRA (envelope-from ) for ; Tue, 11 Apr 2023 16:22:44 +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 682CD3C297 for ; Tue, 11 Apr 2023 16:22:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmEsf-0001cl-Mn; Tue, 11 Apr 2023 10:21:57 -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 1pmEse-0001cO-1V for emacs-orgmode@gnu.org; Tue, 11 Apr 2023 10:21:56 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmEsb-0000Up-Fq for emacs-orgmode@gnu.org; Tue, 11 Apr 2023 10:21:55 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id DF28DA2EEC5; Tue, 11 Apr 2023 16:21:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m57WIqDxQeum; Tue, 11 Apr 2023 16:21:42 +0200 (CEST) Received: from localhost (91-227-196-3.net4me.pl [91.227.196.3]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 3C2D516788D5; Tue, 11 Apr 2023 16:21:42 +0200 (CEST) References: <87h6to1ka7.fsf@mbork.pl> <87fs981izf.fsf@mbork.pl> <87ile4yyap.fsf@localhost> <87ile2u3v9.fsf@localhost> User-agent: mu4e 1.1.0; emacs 30.0.50 From: Marcin Borkowski To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: What is a week? In-reply-to: Date: Tue, 11 Apr 2023 16:21:41 +0200 Message-ID: <87cz4a1oui.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=1681222964; a=rsa-sha256; cv=none; b=HJD5Z7b/QZ6HfB0eLeQEpvxm0Dw/mPDUC87T3Nz8YZZ8e/aMOJyYftvbxgHCy1kcw1z//A Y3EKaBTqBEA9kqwD6bMXVIAssYUL3nyMpL+2nCP9BLBSNexaJGzzFnn3Sq8FE6+fICn/O8 XtzG1AFS1bN5lZnztH0LBJM6/ySU3eHukb+I1eBWOdUTjGFu4lk+FiH3S2QSw8JNnNisd+ tLn/orINsaOkA1G6byS1EI9Jjxu1tER0Q62zz4MS0B2yHmDrx//wHPqh/8mOtymaH8TfV2 T8pbJ11ScwDzA+DRcjjcqCpU7gAfKZGT4USRL4gDdp9WijAgeOwLYwpCTR+nYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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=1681222964; 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; bh=BzyhIc0JkRsUiTN7jtSm1TggvdAN3sgY4nGaFeZtRuY=; b=cmRSKaz6fttK8WKwiMGPvdsmZAJtwxvIcZLn6Ft+irjcFhzI0Jh3lX6WTwuYFAovPDeyAJ y3ieNjQiL8VgUYeBnLAQb+IheYLTPcrOl5rprrVpSJ8XMqUl9gsYeDoi9hNQut/JumZtGC jWKVSH7XGcxfJdYV3mJaI/7EHpkA3NLN25AC4efX/cX0VnHkQ4EzLJRlQl+xAQuvwYRSqJ V17Rw4ASlrGsYSdIoAms9vdEyfAOjqIXk3qePPRU95NR1UEv9CeQ53xDflLUg0wYsQ8/qs K291nMGae1CjXkLYiFr9lRPFp9hSM1Sclnf/aKlQmRQOQem8R/6b/jd30HnC/w== X-Migadu-Spam-Score: -2.12 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: -2.12 X-Migadu-Queue-Id: 682CD3C297 X-TUID: 6EAdCrRi++Q5 On 2023-04-11, at 13:34, Max Nikulin wrote: > On 11/04/2023 17:09, Ihor Radchenko wrote: >> Max Nikulin writes: >>> So at least some people expect 7, not 0. I would say, both variants >>> should be acceptable. >> Would you be interested to make a patch? > > Not really. I expect something like > >> (let* ((ws (mod (or wstart 1) 7)) >> (diff (+ (* -7 shift) (- dow ws) (if (> dow ws) 0 7)))) > > I have realized that current behavior may be considered as > a feature. Agenda obtained on Sunday allows to review previous working > week. So :weekstart 0 and :weekstart 7 might behave > differently. However to make it full-fledged feature, it is necessary Actually, my question resulted from me noticing that "last week" behaves weirdly and the decision to write a blog post about how to display a clock table for the last week. In that case, you can always say `lastweek-1', so I'm not sure if the `0' setting is all that useful. Best, -- Marcin Borkowski http://mbork.pl