emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* funny remote time/duration values
@ 2019-01-07  9:58 Robert Klein
  2019-01-07 11:58 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Klein @ 2019-01-07  9:58 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

when using values (time/duration) from a remote table I sometimes get
funny values:


#+name: teta
| 4:50 |


| 2:25 |
#+TBLFM: @1$1=remote(teta,@1$1)


When I set e.g. 7:50 in “teta” the same value shows up in the second
table (after C-u C-c C-c).

For 1:00 in “teta” I get #ERROR in the second table.  same in all cases
with a 0 in front (04:50, 07:50, 01:00).


Org-version is 9.2

Any ideas?

Thanks and best regards
Robert

-- 
Robert Klein             UNIX Operations
Max Planck-Institut für Polymerforschung
Anschrift:  Ackermannweg 10, 55128 Mainz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* funny remote time/duration values
@ 2019-01-07 10:29 Robert Klein
  2019-01-07 10:59 ` Michal Politowski
  2019-01-07 12:08 ` Michal Politowski
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Klein @ 2019-01-07 10:29 UTC (permalink / raw)
  To: emacs-orgmode


Hi,

when using values (time/duration) from a remote table I sometimes get
funny values:


#+name: teta
| 4:50 |


| 2:25 |
#+TBLFM: @1$1=remote(teta,@1$1)


When I set e.g. 7:50 in “teta” the same value shows up in the second
table (after C-u C-c C-c).

For 1:00 in “teta” I get #ERROR in the second table.  same in all cases
with a 0 in front (04:50, 07:50, 01:00).


Org-version is 9.2

Any ideas?

Thanks and best regards
Robert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: funny remote time/duration values
  2019-01-07 10:29 funny remote time/duration values Robert Klein
@ 2019-01-07 10:59 ` Michal Politowski
  2019-01-07 12:08 ` Michal Politowski
  1 sibling, 0 replies; 5+ messages in thread
From: Michal Politowski @ 2019-01-07 10:59 UTC (permalink / raw)
  To: emacs-orgmode

On Mon,  7 Jan 2019 11:29:15 +0100, Robert Klein wrote:
> 
> Hi,
> 
> when using values (time/duration) from a remote table I sometimes get
> funny values:
> 
> 
> #+name: teta
> | 4:50 |
> 
> 
> | 2:25 |
> #+TBLFM: @1$1=remote(teta,@1$1)
> 
> 
> When I set e.g. 7:50 in “teta” the same value shows up in the second
> table (after C-u C-c C-c).
> 
> For 1:00 in “teta” I get #ERROR in the second table.  same in all cases
> with a 0 in front (04:50, 07:50, 01:00).
> 
> 
> Org-version is 9.2
> 
> Any ideas?

It seems they are treated as (calc) fractions and simplified.

-- 
Michał Politowski

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: funny remote time/duration values
  2019-01-07  9:58 Robert Klein
@ 2019-01-07 11:58 ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2019-01-07 11:58 UTC (permalink / raw)
  To: Robert Klein; +Cc: emacs-orgmode@gnu.org

On Monday,  7 Jan 2019 at 10:58, Robert Klein wrote:
> Hi,
>
> when using values (time/duration) from a remote table I sometimes get
> funny values:
>
> #+name: teta
> | 4:50 |
>
> | 2:25 |
> #+TBLFM: @1$1=remote(teta,@1$1)

Note that x:y in Emacs calc (which is what org uses for the spreadsheet
elements of tables) is a ratio so 4:50 *is* the same as 2:25.

If you have times, you'll need to use different notation (@,',", I
believe).

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: funny remote time/duration values
  2019-01-07 10:29 funny remote time/duration values Robert Klein
  2019-01-07 10:59 ` Michal Politowski
@ 2019-01-07 12:08 ` Michal Politowski
  1 sibling, 0 replies; 5+ messages in thread
From: Michal Politowski @ 2019-01-07 12:08 UTC (permalink / raw)
  Cc: emacs-orgmode

On Mon,  7 Jan 2019 11:29:15 +0100, Robert Klein wrote:
> 
> Hi,
> 
> when using values (time/duration) from a remote table I sometimes get
> funny values:
> 
> 
> #+name: teta
> | 4:50 |
> 
> 
> | 2:25 |
> #+TBLFM: @1$1=remote(teta,@1$1)
> 
> 
> When I set e.g. 7:50 in “teta” the same value shows up in the second
> table (after C-u C-c C-c).
> 
> For 1:00 in “teta” I get #ERROR in the second table.  same in all cases
> with a 0 in front (04:50, 07:50, 01:00).
> 
> 
> Org-version is 9.2
> 
> Any ideas?

It seems you need the 'T' flag here, as described in "Duration and time
values" in the org manual:

#+TBLFM: @1$1=remote(teta,@1$1);T

-- 
Michał Politowski

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-07 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-07 10:29 funny remote time/duration values Robert Klein
2019-01-07 10:59 ` Michal Politowski
2019-01-07 12:08 ` Michal Politowski
  -- strict thread matches above, loose matches on Subject: below --
2019-01-07  9:58 Robert Klein
2019-01-07 11:58 ` Eric S Fraga

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