From mboxrd@z Thu Jan 1 00:00:00 1970 From: thunk2@arcor.de (Thomas Plass) Subject: Re: [week?] (was: insert date-stamp for one month) Date: Mon, 19 Aug 2019 14:29:16 +0200 Message-ID: <23898.38428.221853.195105@AGAME7.local> References: <87a7c6rjl4.fsf@mat.ucm.es> <23897.8759.759508.760331@AGAME7.local> <87wofamtku.fsf_-_@mat.ucm.es> Reply-To: Thomas Plass Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40157) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgn9-0007Hx-LD for emacs-orgmode@gnu.org; Mon, 19 Aug 2019 08:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgn8-0003vw-62 for emacs-orgmode@gnu.org; Mon, 19 Aug 2019 08:29:43 -0400 Received: from vsmx012.vodafonemail.xion.oxcs.net ([153.92.174.90]:42531) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgn7-0003uu-VQ for emacs-orgmode@gnu.org; Mon, 19 Aug 2019 08:29:42 -0400 In-Reply-To: Your message of Sunday, August 18 2019 16:33:37 (ID: <87wofamtku.fsf_-_@mat.ucm.es>). 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" To: Uwe Brauer Cc: emacs-orgmode@gnu.org Hello, Uwe Brauer wrote at 16:33 on August 18, 2019: : The problem seems to be that there is no function : calendar-last-day-of-week. Well, there is, it's called `calendar-week-end-day'. This returns the index into 'calendar-day-name-array. Note that the variable 'calendar-week-start-day should be set properly (it defaults to 0 = $SUNDAY, while I set this to 1, meaning $MONDAY). This will only get you as far as computing the name of the day. Computing a date and/or timestamp for an instance of that day name relative to a date is quite another matter. The file calendar/time-date.el might provide useful stuff for doing so. Thomas