On 10/04/2023 14:46, Ihor Radchenko wrote:
0bca49801eac749b6adf39b176b9455566faac85
Author:     Bastien Guerry
org-clock.el: Implement a new parameter :wstart to define the week start day

-      (setq diff (+ (* -7 shift) (if (= dow 0) 6 (1- dow)))
+      (setq diff (+ (* -7 shift) (if (= dow 0) (- 7 ws) (- dow ws)))

I am not sure if there is any particular reason.

https://list.orgmode.org/87y4z481yc....@bzg.ath.cx/
Bastien. Re: Clocktable for this week starting at Sunday. Thu, 17 Apr 2014 16:28:43 +0200
Torben Hoffmann writes:

    #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives
     :weekstart 7 :block thisweek :step day :fileskip0 :narrow 20!
       ^^^^^^^^^^

should be :wstart -- let us know if it works!

So at least some people expect 7, not 0. I would say, both variants should be acceptable.

P.S. It seems, there is no way to get in Emacs first_weekday from locale(5)


Reply via email to