emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in calculations with durations and time values in tables
@ 2011-09-01  9:50 Gustav Wikström
  0 siblings, 0 replies; only message in thread
From: Gustav Wikström @ 2011-09-01  9:50 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Hello, just a small bug-report. The following does not seem right:

|    First |    Second |    Result |
|----------+-----------+-----------|
| 00:00:00 | -00:10:10 | -01:49:50 |
#+TBLFM: $3='(+ $1..$2);T

|    First |    Second | Result |
|----------+-----------+--------|
| 00:00:00 | -00:10:10 |  -0.17 |
#+TBLFM: $3='(+ $1..$2);t

|    First |    Second |    Result |
|----------+-----------+-----------|
| 00:00:00 | -02:01:00 | -03:59:00 |
#+TBLFM: $3='(+ $1..$2);T

|    First |    Second | Result |
|----------+-----------+--------|
| 00:00:00 | -02:01:00 |  -2.02 |
#+TBLFM: $3='(+ $1..$2);t


Somehow, when the result of a time-calculation with minutes and seconds goes
negative the result gets an additional negative two hours added (with the
minutes and seconds removed from these two hours)... This seems to be a
problem when doing calculations with the suffix ;T.

;t works as intended in this respect.

Regards
Gustav

[-- Attachment #2: Type: text/html, Size: 2018 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-01  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01  9:50 Bug in calculations with durations and time values in tables Gustav Wikström

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).