Org-mode mailing list
 help / color / Atom feed
From: Stephan Schmitt <drmabuse@cs.tu-berlin.de>
To: emacs-orgmode@gnu.org, Nick Dokos <nicholas.dokos@hp.com>
Subject: RE: Problem with date calculations in a table
Date: Fri, 15 Aug 2008 19:20:26 +0200
Message-ID: <48A5BADA.4070507@cs.tu-berlin.de> (raw)
In-Reply-To: <20080815115807.E38CF21E5C@mailhost.cs.tu-berlin.de>

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

       reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080815115807.E38CF21E5C@mailhost.cs.tu-berlin.de>
2008-08-15 17:20 ` Stephan Schmitt [this message]
2008-08-14 23:48 Nick Dokos
2008-08-15  9:24 ` Chris Randle
2008-08-15 11:56   ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A5BADA.4070507@cs.tu-berlin.de \
    --to=drmabuse@cs.tu-berlin.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

Archives are clonable:
	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git