From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz?= Stelmach Subject: Re: fractional hours for timestamps? Date: Thu, 12 Aug 2010 20:22:58 +0200 Message-ID: <87d3tn1yil.fsf@dasa3.iem.pw.edu.pl> References: <87bp974wng.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=38961 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjcQn-0004hz-U4 for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 14:23:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjcQm-0007Vg-GS for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 14:23:09 -0400 Received: from lo.gmane.org ([80.91.229.12]:43036) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjcQm-0007VV-An for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 14:23:08 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OjcQk-0003OM-EI for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 20:23:06 +0200 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2010 20:23:06 +0200 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2010 20:23:06 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > Greg Troxel writes: > >> I tried to set a timestamp "thu 12:00+1.5", using C-c . and typing the >> characters in quotes. What I got was >> <2010-08-12 Thu 12:00-13:00> >> >> I found that 12:00+1:30 works fine, but it seems like 1.5 should be >> parsed. >> >> Separately, I'd like 24-hour time without colons to work. "thu 1400" >> seems unambiguous, but just shows up as thursday without a time. >> >> I don't know how hard these are or if there are reasons not to, but I >> thought I'd throw out the idea. > > It is certainly harder to make Org's parsing capacity even more elastic > than to let our brains parse this directly :) > > 12:00+1.5 looks weird to me and computing 1.5->1:30 is straightforward. > Same for 1400->14:00. > > But maybe other people think otherwise... I think Greg's point is about entering data using only numeric keypad. I can confirm that I have considered these issues (esp. 1400 vs. 14:00). Fractional hours don't seem to be that easy as there are countries like Poland where you use comma as decimal point (working with Emacs' built in calc is a pain) which earns another few lines for parsing code. -- Miłego dnia, Łukasz Stelmach