emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug in calculations with durations and time values in tables


From: Gustav Wikström
Subject: [O] Bug in calculations with durations and time values in tables
Date: Thu, 1 Sep 2011 11:50:14 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]