From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: how to clear computed values Date: Wed, 11 Jul 2007 13:21:44 +0200 Message-ID: References: <1184092729.6283.91.camel@Barebusta.DecebalComp> <93de834e13e5289b11185b67cf4162b0@science.uva.nl> <1184142385.6253.115.camel@Barebusta.DecebalComp> <8a6b8a1aff2bb53d8a97e24f5d5c022a@science.uva.nl> <1184144557.6253.122.camel@Barebusta.DecebalComp> <6d9c720b3100b12868af1b4e535823e9@science.uva.nl> <1184151778.6283.132.camel@Barebusta.DecebalComp> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8aGZ-0004cL-QL for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 07:21:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8aGY-0004c3-7q for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 07:21:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8aGY-0004c0-1w for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 07:21:54 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8aGW-0000CK-Tu for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 07:21:53 -0400 In-Reply-To: <1184151778.6283.132.camel@Barebusta.DecebalComp> 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: Cecil Westerhof Cc: org-mode > > Just one more question. ;-} > I would like to display the days between rows. I found time-date.el, > but > this only works with: > The five data representations used are the following: > > date > An RFC822 (or similar) date string. For instance: "Sat > Sep 12 12:21:54 1998 +0200". > > time > An internal Emacs time. For instance: (13818 26466). > > seconds > A floating point representation of the internal Emacs > time. For instance: 905595714.0. > > days > An integer number representing the number of days since > 00000101. For instance: 729644. > > decoded time > A list of decoded time. For instance: (54 21 12 12 9 > 1998 6 t 7200). > > Is there a way to work with dates like 2007-09-11? You can use parse-time-string which can handle this. It returns a decoded time. Even more general: Org-mode has a very general time parsing function, org-read-date. It gobbles pretty much anything that looks like a date and/or date. It normally reads from the user input, but you can also make it read from a string: (org-read-date t t "2007-02-03") This will return an internal emacs time, time-date can take it from there, for example use time-to-days to get an absolute day number. - Carsten