[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is a week?
From: |
Jude DaShiell |
Subject: |
Re: What is a week? |
Date: |
Mon, 10 Apr 2023 02:04:56 -0400 |
One of the iso standards has weeks starting on Monday.
-- Jude <jdashiel at panix dot com> "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 <mbork@mbork.pl> 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,
>
>
Re: What is a week?, Ihor Radchenko, 2023/04/23