From 7c30885b267a4bfbd20708f6e00f46bb9b564cfb Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 3 Jul 2011 13:38:56 +0200 Subject: [PATCH] org-hacks.org: Update about time computation. --- org-hacks.org | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/org-hacks.org b/org-hacks.org index a9d7868..f52a3fa 100644 --- a/org-hacks.org +++ b/org-hacks.org @@ -560,6 +560,14 @@ and dividing time values by integers : | 52:22 | 4.62 | 11:20 | : #+TBLFM: $3='(with-time t (/ $1 $2)) +*Update*: As of Org version 7.6, you can use the =T= flag (both in Calc and +Elisp formulas) to compute time durations. For example: + +: | Task 1 | Task 2 | Total | +: |--------+--------+---------| +: | 35:00 | 35:00 | 1:10:00 | +: #+TBLFM: @2$3=$1+$2;T + *** Dates computation Xin Shi [[http://article.gmane.org/gmane.emacs.orgmode/15692][asked]] for a way to calculate the duration of @@ -574,23 +582,9 @@ Try the following: | 2004.08.07 | 2005.07.08 | 335 | :#+TBLFM: $3=(date(<$2>)-date(<$1>)) -See this thread: - - http://thread.gmane.org/gmane.emacs.orgmode/7741 - -as well as this post (which is really a followup on the -above): - - http://article.gmane.org/gmane.emacs.orgmode/7753 - -The problem that this last article pointed out was solved -in - - http://article.gmane.org/gmane.emacs.orgmode/8001 - -and Chris Randle's original musings are at - - http://article.gmane.org/gmane.emacs.orgmode/6536/ +See [[http://thread.gmane.org/gmane.emacs.orgmode/7741][this thread]] as well as [[http://article.gmane.org/gmane.emacs.orgmode/7753][this post]] (which is really a followup on the +above). The problem that this last article pointed out was solved in [[http://article.gmane.org/gmane.emacs.orgmode/8001][this +post]] and Chris Randle's original musings are [[http://article.gmane.org/gmane.emacs.orgmode/6536/][here]]. *** Hex computation -- 2.11.4.GIT