emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Ethan Ligon <ligon@are.berkeley.edu>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Date calculations in spreadsheet
Date: Sun, 5 Dec 2010 03:00:29 +0100	[thread overview]
Message-ID: <AANLkTin76rGE+9mfu0eB6FDj_6p4bm8QvEbT3yX3C9+B@mail.gmail.com> (raw)
In-Reply-To: <18596.1291510572@gamaville.dokosmarshall.org>

On Sun, Dec 5, 2010 at 01:56, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Ethan Ligon <ligon@are.berkeley.edu> wrote:
>> |------------------+--------------|
>> | Date             | Days elapsed |
>> |------------------+--------------|
>> | [2009-12-03 Thu] |              |
>> | [2010-12-03 Fri] |          365 |
>> | [2010-12-06 Mon] |            3 |
>> |------------------+--------------|
> |------------------+------------------+--------------|
> | Date  start      | Date end         | Days elapsed |
> |------------------+------------------+--------------|
> | [2009-12-03 Thu] | [2010-12-03 Fri] |          365 |
> | [2010-12-03 Fri] | [2010-12-06 Mon] |            3 |
> #+TBLFM: $3 = date(<$2>) - date(<$1>)

and then
|------------------+--------------|
| Date  start      | Days elapsed |
|------------------+--------------|
| [2009-12-03 Thu] |              |
| [2010-12-03 Fri] |          365 |
| [2010-12-06 Mon] |            3 |
#+TBLFM: $2 = date(<$1>) - date(<@-1$1>) :: @2$2 = string("")

Michael

      reply	other threads:[~2010-12-05  2:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 23:19 Date calculations in spreadsheet Ethan Ligon
2010-12-05  0:56 ` Nick Dokos
2010-12-05  2:00   ` Michael Brand [this message]

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://www.orgmode.org/

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

  git send-email \
    --in-reply-to=AANLkTin76rGE+9mfu0eB6FDj_6p4bm8QvEbT3yX3C9+B@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ligon@are.berkeley.edu \
    --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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).