From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cNN/MkvocWBN9AAAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 20:02:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kBNTLEvocWBrFgAAB5/wlQ (envelope-from ) for ; Sat, 10 Apr 2021 18:02:51 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F2E728B57 for ; Sat, 10 Apr 2021 20:02:51 +0200 (CEST) Received: from localhost ([::1]:36420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVHwY-0003AQ-8z for larch@yhetil.org; Sat, 10 Apr 2021 14:02:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUdL1-0001N4-11 for emacs-orgmode@gnu.org; Thu, 08 Apr 2021 18:41:23 -0400 Received: from mailout01.t-online.de ([194.25.134.80]:60048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUdKz-0005b3-9X for emacs-orgmode@gnu.org; Thu, 08 Apr 2021 18:41:22 -0400 Received: from fwd06.aul.t-online.de (fwd06.aul.t-online.de [172.20.26.150]) by mailout01.t-online.de (Postfix) with SMTP id BC173723E1 for ; Fri, 9 Apr 2021 00:41:16 +0200 (CEST) Received: from [192.168.0.10] (r1hELeZYohYfWPUikDxGAjwUB8VoiDjVhoa0h0Eg6+Zk0HhLb47hnekX7mVKS3BQ0f@[95.90.250.170]) by fwd06.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1lUdKs-2880000; Fri, 9 Apr 2021 00:41:14 +0200 To: emacs-orgmode@gnu.org From: Fr Ml Subject: How to calculate a vector (list) of time durations in tables? Message-ID: <80835fa0-0138-5241-1332-07e9af8c7b2a@t-online.de> Date: Fri, 9 Apr 2021 00:43:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-ID: r1hELeZYohYfWPUikDxGAjwUB8VoiDjVhoa0h0Eg6+Zk0HhLb47hnekX7mVKS3BQ0f X-TOI-EXPURGATEID: 150726::1617921674-00003102-A16176F1/0/0 CLEAN NORMAL X-TOI-MSGID: dbd1d776-15f1-4c7f-86cf-431c52c9b204 Received-SPF: none client-ip=194.25.134.80; envelope-from=fr_ml@t-online.de; helo=mailout01.t-online.de X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 10 Apr 2021 14:02:09 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618077771; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=wr1IxvJU3/kutB5xWipavFR+p3hCiQZ19h/jQLcqDIA=; b=J4W84VXDGurt18nVsh1oiNU2fdNL2tvTjWfYFjzJEgLOXRYSsKE21IkkOVGcBL7s3KiBsZ +K2s541SADCzDYuvoK1JzCY8gpTQpdQsq1pms7gTnzBfpnIVWY/VqxR/oVZTD/ExjYOi+r 0a7LECsjIo4gE05V8zZzBniG0Zct8LI/M5iZOSMhhwWcaFR5mPW+4BMvgewUOdY8/AMUSz zV5hCo8gsZmQT+6w4KLrdT82b5C7nV90gRxJGmzM/Msz5ln+aKs3VTazFmDsKoZEq+fvIt nHNZ2NtC95Nrie53XsRUcYJss4BIA1qsAn80qWR6GTg4WgOTELo4An3jWonmxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618077771; a=rsa-sha256; cv=none; b=OND5TJoOl/HuC6ihb6nFaXcPmzQDhTLU9F58OOyp0rs/C1Lc7CXA/+ocFiBFUXqHB4Zu/F 6aUhBI/ii1JLzQX0RSG7F+EdxPLUylfFG1nn31flRKsjnx4f9esxqeCi2cpzyxDmdSooB8 NCceHc7KhuCZLhkM15JLE1R/061iL6eRXv42r572iVruqaI4jjTIr4Wl3g+uArNeWK679h DzDwsH9eh4T5Nu+29KHXhVe7tNLRHfuWKeH6qFP2PvJrTxJPAzx0kBQh2zXPlT8E05AQ/G U1KTbza85rXM5crrmYEnZdFLPQsKNZZ0JmX57aiigCPwLtMEUTLsjDRsGLhXWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.14 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4F2E728B57 X-Spam-Score: -0.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9QBcsLbwCFqm

Hello,

I have a problem with the calculation of time durations in tables. I hope someone can help me.

*How to calculate a vector (list) of time durations in tables?*


Subtraction of numerical vectors works directly:
```
| day              | t1       | t2       | differences |
|------------------+----------+----------+-------------|
| [2021-04-08 Thu] | [10, 13] | [16, 18] | [6, 5]      |
#+TBLFM: $4=$3-$2
```

Using this with time vectors to compute durations) doesn't work. It computes only the first item:
````
| day              | time 1         | time 2         | durations |
|------------------+----------------+----------------+-----------|
| [2021-04-08 Thu] | [10:45, 14:00] | [12:00, 15:00] |     01:15 |
#+TBLFM: $4=$3-$2;U
````
I would expect this:

````
| day              | time 1         | time 2         | durations     |
|------------------+----------------+----------------+---------------|
| [2021-04-08 Thu] | [10:45, 14:00] | [12:00, 15:00] | [01:15, 1:00] |
````

I hope there is an (easy) solution (?)

Best Regards
Frank