[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] how to clear computed values

From: Carsten Dominik
Subject: Re: [Orgmode] how to clear computed values
Date: Wed, 11 Jul 2007 13:21:44 +0200

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:

                An RFC822 (or similar) date string. For instance: "Sat
                Sep 12 12:21:54 1998 +0200".

                An internal Emacs time. For instance: (13818 26466).

                A floating point representation of the internal Emacs
                time. For instance: 905595714.0.

                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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]