From mboxrd@z Thu Jan 1 00:00:00 1970 From: adolfo villafiorita Subject: Time intervals with org-read-date Date: Fri, 07 Sep 2018 13:26:59 +0200 Message-ID: <87va7him4c.fsf@fbk.eu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyEup-0002Co-Ou for emacs-orgmode@gnu.org; Fri, 07 Sep 2018 07:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyEuk-0001zA-SA for emacs-orgmode@gnu.org; Fri, 07 Sep 2018 07:27:07 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:33163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyEuk-0001yB-IE for emacs-orgmode@gnu.org; Fri, 07 Sep 2018 07:27:02 -0400 Received: by mail-wm0-x235.google.com with SMTP id r1-v6so16695015wmh.0 for ; Fri, 07 Sep 2018 04:27:02 -0700 (PDT) Received: from localhost (outusers10.fbk.eu. [217.77.82.233]) by smtp.gmail.com with ESMTPSA id l24-v6sm14849576wrb.65.2018.09.07.04.27.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Sep 2018 04:27:00 -0700 (PDT) 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: emacs-orgmode@gnu.org Hello, I am trying to write a template to enter an entry with start and=20 end time, that is, something like <2018-10-09 11:00-12:00>. The capture template I have at the moment is: ("a" "Agenda Entry" entry (file+headline ,(concat=20 (file-name-as-directory org-directory) "agenda.org") "Agenda") "**** %? %^G\n %^{LOCATION}p %^{ATTENDEES}p\n=20 <%(org-read-date t)>") However, I am having problems with org-read-date. More specifically, when using the template: - I can correctly enter an entry with date and time. That is, if=20 I type something like: "2018-09-10 11:00" in the modeline, the=20 timestamp generated is <2018-09-10 11:00> (as expected) - I cannot create an entry with a time interval: the timestamp=20 returned by org-read-date has the current time instead of the=20 interval entered in the modeline. That is, if I type in the=20 modeline something like "2018-09-10 11:00-12:00", the timestamp=20 generated is <2018-09-10 14:14>, assuming 14:14 is the current=20 time. This seems odd, since the date printed right of =3D> in the modeline=20 seems to recognize the interval correctly. Is this the intended behavior of org-read-date? ... and, more to the point, any suggestion on how to fix the=20 template? thanks in advance! -adolfo --=20 -- Le informazioni contenute nella presente comunicazione sono di natura=20 privata e come tali sono da considerarsi riservate ed indirizzate=20 esclusivamente ai destinatari indicati e per le finalit=E0 strettamente=20 legate al relativo contenuto. Se avete ricevuto questo messaggio per=20 errore, vi preghiamo di eliminarlo e di inviare una comunicazione=20 all'indirizzo e-mail del mittente. -- The information transmitted is=20 intended only for the person or entity to which it is addressed and may=20 contain confidential and/or privileged material. If you received this in=20 error, please contact the sender and delete the material.