emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is a week?


From: Max Nikulin
Subject: Re: What is a week?
Date: Mon, 10 Apr 2023 18:51:10 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

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.fsf@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

[Prev in Thread] Current Thread [Next in Thread]