From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Burdick Subject: Re: How to make weeks start from Sunday and be numbered from a custom date Date: Sun, 23 Aug 2015 19:12:23 +0000 Message-ID: References: <87egit6fvh.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1130c8c67817f3051dff48be Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTah1-0001lr-S7 for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 15:12:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTah0-0000h2-Vk for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 15:12:35 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:37456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTah0-0000fb-Od for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 15:12:34 -0400 Received: by widdq5 with SMTP id dq5so54523398wid.0 for ; Sun, 23 Aug 2015 12:12:33 -0700 (PDT) In-Reply-To: <87egit6fvh.fsf@pierrot.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos , emacs-orgmode@gnu.org --001a1130c8c67817f3051dff48be Content-Type: text/plain; charset=UTF-8 Have you tried customizing org-agenda-format-date with a function? Here's the doc string: "Format string for displaying dates in the agenda. Used by the daily/weekly agenda and by the timeline. This should be a format string understood by `format-time-string', or a function returning the formatted date as a string. The function must take a single argument, a calendar-style date list like (month day year)." If you're mostly concerned about displaying dates, rather than reading them in, that might do the trick. -- Bill On Sun, Aug 23, 2015 at 9:04 PM Nick Dokos wrote: > Meir Goldenberg writes: > > > Two questions: > > > > 1. My work week starts on Sunday, so I have: > > > > (setq org-agenda-start-on-weekday 0) > > > > Now the agenda timeline starts on Sunday as desired. However, it says on > top "Week agenda (W34-W35)", i.e. it still thinks that the week starts on > Monday. Can I change that? > > > > 2. It would be very useful for me if the weeks were numbered from the > week when my big work project started. Can I have the week numbering > customized to have W01 on a certain date? > > > > I believe the answer is "no" to both questions: these are ISO week > numbers and org depends on calendar functions to calculate them. > > -- > Nick > > > --001a1130c8c67817f3051dff48be Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Have you tried customizing org-agenda-format-date with a f= unction?=C2=A0 Here's the doc string:

"For= mat string for displaying dates in the agenda.
Used by the daily/= weekly agenda and by the timeline.=C2=A0 This should be
a format = string understood by `format-time-string', or a function returning
the formatted date as a string.=C2=A0 The function must take a single= argument,
a calendar-style date list like (month day year)."= ;

If you're mostly concerned about displ= aying dates, rather than reading them in, that might do the trick.


-- Bill

On Sun, Aug 23, 2015 at 9:04 PM Nick Dokos <ndokos@gmail.com> wrote:
Meir Goldenberg <mgoldenbe@gmail.com> writes:

> Two questions:
>
> 1. My work week starts on Sunday, so I have:
>
> (setq org-agenda-start-on-weekday 0)
>
> Now the agenda timeline starts on Sunday as desired. However, it says = on top "Week agenda (W34-W35)", i.e. it still thinks that the wee= k starts on Monday. Can I change that?=C2=A0
>
> 2. It would be very useful for me if the weeks were numbered from the = week when my big work project started. Can I have the week numbering custom= ized to have W01 on a certain date?
>

I believe the answer is "no" to both questions: these are ISO wee= k
numbers and org depends on calendar functions to calculate them.

--
Nick


--001a1130c8c67817f3051dff48be--