From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: bug#9695: allowed date range Date: Thu, 13 Oct 2011 09:57:56 +0200 Message-ID: <87ipntjpbv.fsf@thinkpad.tsdh.de> References: <87ty7kd8oh.fsf@kanis.fr> <87ehyiitv7.fsf__48109.1452217244$1318487785$gmane$org@googlemail.com> <87mxd5jqpn.fsf@thinkpad.tsdh.de> <87lisp9vsm.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REGAz-0002xj-P7 for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 03:58:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REGAy-0002JF-KN for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 03:58:01 -0400 Received: from deliver.uni-koblenz.de ([141.26.64.15]:40888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REGAy-0002Fy-FX for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 03:58:00 -0400 Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id E8ACDD2384 for ; Thu, 13 Oct 2011 09:57:58 +0200 (CEST) Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nghsHRTdVF0q for ; Thu, 13 Oct 2011 09:57:58 +0200 (CEST) Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 7AB7AD238D for ; Thu, 13 Oct 2011 09:57:58 +0200 (CEST) In-Reply-To: <87lisp9vsm.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Thu, 13 Oct 2011 08:48:25 +0100") 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: emacs-orgmode@gnu.org Eric S Fraga writes: Hi Eric, >> Oh, now I see what's wrong. All time stamps consist of the date and >> then the day's name abbreviation, which is missing with your example. >> Correct would be >> >> <2011-10-17 Mon>--<2011-10-30 Sun> > > Although the day is optional according to the regexp. I would > definitely like to have the regexp with the space optional as well as > there are cases where I want to type the date in directly (not in org > mode for whatever reason). In those cases, it is easy to type > 2011-01-01 or whatever but it's not necessarily trivial to determine > the day of the week... Yes, I agree, although you can use org-time-stamp everywhere (in emacs). And you can actually insert timestamps simply by writing <2011-10-13 > with the whitespace to make it a valid timestamp. That will be shown as day entry in the agenda, and you might have typed it in using some non-emacs text editor on you phone. Now, back in org-mode, simply S- and S- on any number, and et voila, the missing day name abbrev is added automatically. > Actually, interesting thought experiment: does org actually do any > consistency checks, comparing the date and the day of the week? No, I don't think so. Manipulating and creating timestamps using the provided commands ensures their correctness, but for actual calculation the day names are ignored. It's just for humans. Bye, Tassilo