Nick Dokos wrote:
Chris Randle wrote:
I had problems getting date arithmetic to work in tables. I posted my
findings and solutions here:

http://article.gmane.org/gmane.emacs.orgmode/6536/

Don't know if it will fix your problem (too lazy to try!) but I suspect
it will.

It did! I don't understand the details yet but the following seems to do
what I want:

| start                | ETA (start + 12 hrs)   |
|----------------------+------------------------|
| 2008-08-14 Thu 18:15 | <2008-08-15 Fri 06:15> |
|                      |                        |

#+TBLFM: $2=(date(<$1>) ? <$1>+0.5 : string(""))

The date in the first column can be just a string as above, a passive
date or an active date (the file is not in the agenda list so I don't
really have to worry about active dates).

Thanks very much,
Nick



Hi,

I tried it, too, but got the same time (6:15) when adding 1.0 or 2.0.
how bizarre!


| start                | ETA (start + 48 hrs)   |
|----------------------+------------------------|
| 2008-08-14 Thu 18:15 | <2008-08-16 Sat 06:15> |
|                      |                        |
#+TBLFM: $2=(date(<$1>) ? <$1>+2.0 : string(""))

Greetings,
        Stephan


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to