emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Gustav Wikström" <gustav.erik@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug in calculations with durations and time values in tables
Date: Thu, 1 Sep 2011 11:50:14 +0200	[thread overview]
Message-ID: <CA+SyOP_19dwYDerkGxPO8qfLxaQQqpGVu5CucQ8PRY=Q4yvVQQ@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2011-09-01  9:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CA+SyOP_19dwYDerkGxPO8qfLxaQQqpGVu5CucQ8PRY=Q4yvVQQ@mail.gmail.com' \
    --to=gustav.erik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).