Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Stephan Schmitt <drmabuse <at> cs.tu-berlin.de>
Subject: RE: Problem with date calculations in a table
Newsgroups: gmane.emacs.orgmode
Date: Friday 15th August 2008 17:20:26 UTC (over 8 years ago)
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.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
CD: 2ms