[Top][All Lists]

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

RE: [Orgmode] Problem with date calculations in a table

From: Stephan Schmitt
Subject: RE: [Orgmode] Problem with date calculations in a table
Date: Fri, 15 Aug 2008 19:20:26 +0200
User-agent: Thunderbird (X11/20080805)

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


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,


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(""))


reply via email to

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