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: Tue, 11 Apr 2023 18:34:47 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

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 to introduce first_workday in addition to first_weekday. See properties reported by

     locale -k LC_TIME




reply via email to

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