From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Only display hours and minutes, not seconds Date: Wed, 30 Oct 2013 21:40:58 -0400 Message-ID: <87a9hqkyj9.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbhGB-0003GX-2y for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 21:41:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbhG3-0004m9-P9 for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 21:41:19 -0400 Received: from plane.gmane.org ([80.91.229.3]:53361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbhG3-0004ld-IC for emacs-orgmode@gnu.org; Wed, 30 Oct 2013 21:41:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VbhG2-0001uB-Jr for emacs-orgmode@gnu.org; Thu, 31 Oct 2013 02:41:10 +0100 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Oct 2013 02:41:10 +0100 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Oct 2013 02:41:10 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cecil Westerhof writes: > I have the following table: > |----------| > | Duration | > |----------| > | 2@ 15    | > | 2@ 30    | > | 2@ 30    | > | 0@ 45    | > |----------| > | 8@ 0' 0" | > |----------| > #+TBLFM: @>$1=vsum(@2..@-1) > > I would like the total be displayed like: >     8@ 00' > instead of: >     8@ 0' 0" > > Is this possible? > You can get close by setting org-calc-default-modes as follows: (setq org-calc-default-modes '(calc-internal-prec 12 calc-float-format (float 8) calc-angle-mode deg calc-prefer-frac nil calc-symbolic-mode nil calc-date-format (YYYY "-" MM "-" DD " " Www (" " hh ":" mm)) calc-display-working-message t calc-hms-format "%s@ %02s'")) This is the default setting except for calc-hms-format. It does not quite do what you want, but it's close (I expected the %02s to zero-fill on the left, but apparently it does not for the %s format): |----------| | Duration | |----------| | 2@ 15 | | 2@ 30 | | 2@ 30 | | 0@ 45 | |----------| | 8@ 0' | |----------| #+TBLFM: @>$1=vsum(@2..@-1) -- Nick