From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.devel Subject: Re: ISO dates, correction on Org documentation Date: Sun, 20 Sep 2009 20:08:55 +0100 Message-ID: <6D3EF83E-3950-4FAE-B6CF-3B702DA0E665@gmail.com> References: <87iqfglscc.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1253473760 8503 80.91.229.12 (20 Sep 2009 19:09:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Sep 2009 19:09:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-1?Q?Vincent_Bela=EFche?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 20 21:09:13 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MpRmZ-0005Ay-UY for ged-emacs-devel@m.gmane.org; Sun, 20 Sep 2009 21:09:12 +0200 Original-Received: from localhost ([127.0.0.1]:38621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpRmZ-0000lL-Cz for ged-emacs-devel@m.gmane.org; Sun, 20 Sep 2009 15:09:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpRmT-0000l6-GG for emacs-devel@gnu.org; Sun, 20 Sep 2009 15:09:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpRmP-0000iS-0c for emacs-devel@gnu.org; Sun, 20 Sep 2009 15:09:04 -0400 Original-Received: from [199.232.76.173] (port=48560 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpRmO-0000iP-R6 for emacs-devel@gnu.org; Sun, 20 Sep 2009 15:09:00 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:50253) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MpRmO-0004iy-1W for emacs-devel@gnu.org; Sun, 20 Sep 2009 15:09:00 -0400 Original-Received: by ewy7 with SMTP id 7so2498120ewy.31 for ; Sun, 20 Sep 2009 12:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=60RxIq6zaIKR656xAXDT/yog4zbG3CbAAqcGj/NLKIM=; b=Jg43DQ83XFpFF20GlMdkcdGOYzhY82baeGWWLb1A1wzSywv41czrq+oO4NqGHk/1lZ WLVrHjWRO2Vx0kyTBYbe3FxtKdYL/uZe7hTFJXGiR2GCwurTtF4Rngmru2QEmHfcbhmi NAI+GC3yyLOSsLTvvQnLhPUqM4gYMLS9MZHGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=sFYuHYm8bvdJv8zriKodfkVtdw5VlUpvczYbrHp5Cu8yxc/tp7TZx1LuH/JOczcHrQ I3gT5MBo2EiFGWOf81DWLJFRowOh4y3ZMWXDqJ0HFKemtFBqWkNwEp2KnR8MFROy9FsM gXtvy6G081RgwrKK7qF2rW+31E1gDhfeD6w50= Original-Received: by 10.211.131.23 with SMTP id i23mr4589772ebn.90.1253473738946; Sun, 20 Sep 2009 12:08:58 -0700 (PDT) Original-Received: from Unknown-00-1e-52-73-1c-07.home (host86-165-15-58.range86-165.btcentralplus.com [86.165.15.58]) by mx.google.com with ESMTPS id 28sm517451eye.38.2009.09.20.12.08.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 20 Sep 2009 12:08:57 -0700 (PDT) In-Reply-To: <87iqfglscc.fsf@gmail.com> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115485 Archived-At: Hi Vincent, thanks for the patch, I will apply it. - Carsten On Sep 18, 2009, at 6:44 AM, Vincent Bela=EFche wrote: > Hello Dominik, > > The Org mode documentation says that Org mode uses ISO time > stamps. Although Org mode date/time format is inspired by ISO, it is =20= > not > fully compliant, see for instance http://fr.wikipedia.org/wiki/=20 > ISO_8601 > on ISO date and time format. > > I corrected the documentation and attached a patch. > > FYI, in ISO date/time format looks like this: > > 2009-09-18T07:16 > > while Org mode is like that > > <2009-09-18 ven. 07:16> > > (this timestamp was generated by `C-c .' on my machine, `ven.' means > `Fri' in French). > > Intervals and are supported by ISO, with a `/' separator, while org =20= > uses > a `-' separator which is ambiguous in ISO (+ or - are used for the =20 > time > zone). > > ISO also supports intervals specified with a duration with the `P' > seperator, such intervals may be defined relative to begin date or > end date > > ISO also supports repetitions with the `R' separator, while Org uses a > `+' separator. > > If ever you want to implement ISO 8601 format into Org, I suggests =20 > that > ISO8601 timesamps/time interval are encapsulated into `' =20 > where > the leading `I' would help Org to disambiguate from native Org mode > format (although in case where `T', `P' or `R' is used, it is possible > to guess it's an ISO format. > > So the example I gave would be: > > > > There could also be some relaxed ISO using an `i' prefix like this: > > > > where the day short name (eg. `ven.') is shown between backets, as =20 > it is > cool to have this information. Relaxed ISO would just strip _anything_ > between brackets before interpreting the timestamp, so it would be =20 > quite > robust to locale stuff (like `ven.' instead of `Fri'). > > Very best regards, > > Vincent. > > PS: I may contribute on this, if you wish. > > > *** org.texi.old Fri Sep 11 19:30:09 2009 > --- org.texi Fri Sep 18 04:59:29 2009 > *************** > *** 4831,4844 **** > @cindex deadlines > @cindex scheduling > > ! A timestamp is a specification of a date (possibly with a time or =20= > a range > ! of times) in a special format, either @samp{<2003-09-16 Tue>} or > @samp{<2003-09-16 Tue 09:39>} or @samp{<2003-09-16 Tue > ! 12:00-12:30>}@footnote{This is the standard ISO date/time format. =20= > To > ! use an alternative format, see @ref{Custom time format}.}. A =20 > timestamp > ! can appear anywhere in the headline or body of an Org tree entry. =20= > Its > ! presence causes entries to be shown on specific dates in the agenda > ! (@pxref{Weekly/daily agenda}). We distinguish: > > @table @var > @item Plain timestamp; Event; Appointment > --- 4831,4844 ---- > @cindex deadlines > @cindex scheduling > > ! A timestamp is a specification of a date (possibly with a time or =20= > a range of > ! times) in a special format, either @samp{<2003-09-16 Tue>} or > @samp{<2003-09-16 Tue 09:39>} or @samp{<2003-09-16 Tue > ! 12:00-12:30>}@footnote{This format is inspired by the standard ISO =20= > 8601 > ! date/time format. To use an alternative format, see @ref{Custom =20 > time > ! format}.}. A timestamp can appear anywhere in the headline or =20 > body of an Org > ! tree entry. Its presence causes entries to be shown on specific =20 > dates in the > ! agenda (@pxref{Weekly/daily agenda}). We distinguish: > > @table @var > @item Plain timestamp; Event; Appointment > *************** > *** 4985,4992 **** > @cindex time, reading in minibuffer > > @vindex org-read-date-prefer-future > ! When Org mode prompts for a date/time, the default is shown as an =20= > ISO > ! date, and the prompt therefore seems to ask for an ISO date. But it > will in fact accept any string containing some date and/or time > information, and it is really smart about interpreting your input. =20= > You > can, for example, use @kbd{C-y} to paste a (possibly multi-line) =20 > string > --- 4985,4993 ---- > @cindex time, reading in minibuffer > > @vindex org-read-date-prefer-future > ! When Org mode prompts for a date/time, the default value is shown =20= > in default > ! date/time format which looks like an ISO date, and the prompt =20 > therefore seems > ! to ask for a date/time in this format. But it > will in fact accept any string containing some date and/or time > information, and it is really smart about interpreting your input. =20= > You > can, for example, use @kbd{C-y} to paste a (possibly multi-line) =20 > string